Try this article: https://www.sql-easy.com/learn/how-to-uninstall-sql-server/. I have not tried it myself (never had reason to), but some people have reported success after having followed it. (I actually learnt about the article from someone I tried to help here in the forums.)
The other alternative is create a virtual machine and install SQL Server on the VM. If you have never worked with virtual machines before that is certainly a hurdle. Then again, virtual machines are a tremendous asset in general, so it is good to be able to master that technique.
Finally, also check out this article. It discusses a known issue where Windows 11 reports data for certain disk-drive models that SQL Server may not be able to cope with. This could be the reason why your installation failed initially. If you have one of those disk drives, you will need to apply the workarounds in the article, no matter if you install on a physical machine or a virtual machine.