VSCODE showing "Problems"

How can i get rid of these errors showing up ?
I thought this was taken care of by cppcheck.
I added these lines:
check_tool = cppcheck
check_flags = cppcheck: --enable=all --inline-suppr --suppress=:/.pio/*
But did not help. I guess its including the headers from the esp-idf platform

It appears this is a macOS problem. This same project in Windows doesn’t have the issue.

Opening on my old mac mini shows no issues either.