Using the Modern Fortran plugin in VSCode, .mod files are continuously generated and I think it makes sense to exclude them from VC by adding them to .gitignore.
The .mod files in the example folders should also be excluded.
I think it also makes sense to also add them to the template for generating fpm packages.