Ignore dynamic string in Grouping

Dear all,
I noticed we have duplicated messages in Sentry because it does not recognize string variables like:

“‘text01’ then there is an error like ‘1’”
“‘text002’ then there is an error like ‘2’”
as explained here
But it is not working. It just considers the same length and does not work properly for shorter or longer strings:

Unfortunately, I could not find a document about .Net SDK to change grouping stack trace, would you please help me with that?