Building 5.0.0 from Source, getting a version error 1.2 is not supported

Building UE 5.0.0 (yea i know its unstable, but have to), followed the official tutorial
ran the bat files, opened sln, set the sln config to Development Editor, set sln platfrom to Win64

Building the UE5 target gives these error.
Cant seem to find the file

1>UnrealBuildTool : error : Unhandled exception: Dependency file “D:\UE_5.0.0\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Core\Module.Core.9_of_18.cpp.json” version (“1.2”) is not supported version

And this error as well.

1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…..\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild” exited with code 6.

If it helps:
Microsoft Visual Studio Community 2022
Version 17.5.3