In one of the cshtml files,namespaces can not be found
I am using visual studio 2022 .net 6. All the other cshtml files within the same project are not showing any issues. Only in one cshtml file, the namespaces are not able to be found. All the namespaces are already added in using statement. Also, the values in a string inside the html tag are being recognized falsely as namespaces by visual studio. I have tried deleting obj and bin folder are rebuilding. I also tried removing and adding the package references.