Trust me, if you are on Mac M1 with VSCode:
- remove all the VSCode extensions about C++ and C# you have from Microsoft
- install this: Name: Unreal Engine Tools - Visual Studio Marketplace
- set this in the settings (or follow the extensions readme): “uetools.unrealEngineInstallationSearchPath”: “/Users/Shared/Epic Games”,
And you should have a perfect and fast intellisense and no errors!