Shared/Python: #21935 follow up by MathiasVP · Pull Request #21998 · github/codeql
In #21935 we added support for YAML comment extraction for all languages which support extraction YAML. However, it turns out there some languages generate the dbscheme from other files which I missed in that PR.
This PR fixes up these issues.