Please see pics!
I am using Visual Studio 2022, I had the same issue with Visual Studio Code.
I am trying to add an #include in my header Grabber.h, by doing so the GENERATED_BODY() function will move from line 12 to line 13, and the UClass from line 9 to line 10 creating the following issue see pics. The program will generate compiler errors if those lines are moved down.