Cannot open included file

I read this as you have instructed the linter where to find additional includes.

I think that you may want to use

fortran.includePaths

so that the same information is used for the compiler.