My class name and file name match but it says they dont

I am making a 2d game and trying to add my re-spawn script to it but it says it dose not exist because my class name and public name may not match but even after fixing it it still says the same thing.

Hi. The file should be corrupted. Save the content of the file using an external editor, delete the file and create a new one wiht Unity.