This is a compiler, not intelliense error.
c_cpp_properties.json
only affects intelliense. You need -I
in tasks.json pointing to that include directory.