Items missing from Tasks menu. INI file syntax error?

I’ve got a relatively complex platformio.ini file which you can see here. It uses extends quite a bit to reduce redundancy, but this seems to have confused the code that populates the Tasks / Build menus.

Is this an expected behavior?

If this is the potential result of a syntax error, is there a way to simply run a syntax check on the platformio.ini file?