this might be a problem of the grammar checker languagetool but the current version of it seems to do that right. You can test it on https://www.languagetool.org/
This bug should be moved to the right package or be closed if languagetool should not see a version update.