Next release of SonarLint will include latest version of Python analyzer, where this False Positive has been fixed.
In the meanwhile, as a workaround, I’d suggest to use SonarLint in connected mode with SonarCloud, so that you can benefit from running the latest Python analyzer.