Doxygen and platformIO. @'s in comments

Hey all, I’m working on converting a number of arduino IDE based projects to platformIO, however I’ve run into a problem and I hope someone can offer a solution.
Some of these projects use doxygen, which generates documents through comments in the code. This works fine in the arduino IDE. However, in platformIO on vscode, the @'s, which are necessary for doxygen, seem to make whatever comes after them, ignore the fact that they are commented:
Which obviously means errors start appearing.
Thanks in advance for any possible solutions.

What is the type of error when you move the mouse over that red line?

This is the error I get:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (Path/To/Project). C/C++(1696)