Modern Fortran on VSCode fails to recognize external includes

Here is a screenshot of the same project opened in Kate, the KDE editor, with fortls on stock settings. The netcdf module is found, and I get proper autocompletion for its functions. For what it’s worth, it doesn’t work anymore if I load the local .fortlsrc configuration.