Platformio.ini is showing errors, but works ok

I didn’t make any changes to my platformio.ini file, but it has suddenly started showing errors.

It is working ok. Platformio.ini files in other projects are ok, but this one has started showing red squigle lines all over the place.

I have no idea what caused the errors, it was as though it was reading platformio as a source file.

I have rebuilt the project folder from an older branch and I think it is ok again.