VSC v5.5.7 or HA 2023.4.6 problem with VSC

This looks like the same issue I just described in another thread.

Note the error occurs at the first line of the file because the parser can’t resolve the schema and then doesn’t check the rest of the file (doesn’t matter what the first line is).