For me the case was that I updated VS 2022 and it stopped working. After some searching, the following topic popped up: UE5.3 cannot build project. Downgrading following the advice in this answer How to install specific version of Visual Studio 2022 - Stack Overflow solved my issue!