False positive of csharpsquid:S1116

Hi @dmitriy.vorobey1! Welcome to Sonar community.
Your issue seems very similar to this one.

Are you using the latest version of the .Net 8 SDK from November 14?