Issue with C++ folders and VS

Unreal randomly started pointing me towards the Binaries/Win64 folder for all my C++ files yesterday, and stopped recognising my Source folder.

I’m not sure why but I’m guessing VS updated without my knowledge. Now I open the .sln and my VS is pointing to Unreal, not my Source. And there is no games folder.

So I click ‘folder view’ rather than solution view and go into my folder for the game.
Then I get this error with Unreal Version 5.3.2, keep in mind I’ve updated nothing and this was working fine a day or two ago. I’ve only ever had Unreal 5.3.2 downloaded.

This comes up in log.

I’m going to download an older version of VS now and see if it helps. I’ve re-downloaded Unreal Engine and the latest VS multiple times already.

Update I’ve re-downloaded everything and it’s still pointing to the wrong folder. After re-generating all project files it tells me to build from source. I open the .sln and it points to UE5 not my game, I open the folder view and when I load my project folder I get this error:

Ten hours straight trying to solve this now and not sure what to do.

Update: I created a new project and noticed some differences, the build.cs and target files had been deleted from my old project somehow. Therefore I took those files and copied them and changed them to my project name.

However, now the project finds my source folder but only displays the target files.