OK FINALLY I FIXED THE ISSUE LET'S SEE HOW
First you need to delete everything related to MSSQL Server but you can't delete anything because of an error
here is the solution for this situation
Download Ashampoo Uninstaller https://www.ashampoo.com/en-nz/uninstaller from here it will give you 10 days free trial and if you add your email it will give you 30 days, then select Microsoft SQL Setup and click to delete it you will see the normal uninstallation after it finish it will delete the registry and everything else related to sql but you need to do this with the other setups and that's what happened when i tried to setup MSSQL after i did this