I’ve had this problem only with this project but it happened twice and to my friend following this couse too.
Starting the project at seemingly random intervals the c++ class seem to disappear and the blueprint based on those class lose all components.
In my case the solution was disabling live code, close the editor, close epic, with task manager under details stop UnrealTraceServer.exe delete the folder C:\Users<yourUser>\Appdata\local\Unreal Engine (appdata is a hidden folder) the going into visual studio code and rebuild the project from scratch.
Maybe the project files should be redone for UE5.