After a proper examination of this issue, it appears that it is not linked to SonarLint but to the IDE version you are using.
This bug ticket was created on JetBrains’ side, and it got fixed on the latest 2024.1 version (241.14494.240).
I would recommend you update your IDE and see if it’s still reproducible.
Update: it seems the fix did not work for our problem, I raise the issue to them