Regex pattern for Swift function name rule doesn't seem to work

SonarQube Enterprise Edition: Version

We have a requirement to tweak a Swift rule to allow a specific regex for code smell rules like function names, class names, etc.
We followed the below steps to customize the regex:

  1. Copy the built-in Sonarway quality profile.
  2. For the “Function names should comply with a naming convention” rule, update the regex from ^[a-z][a-zA-Z0-9]$ to ^[a-z][a-zA-Z0-9_]$. Added “underscore” to allow it in function names.
  3. Set this new quality profile as the default.
  4. Scanned the code again.
  5. There doesn’t seem to be any difference in the related code smells and it still shows the same number of code smells for this rule. Tried even by creating a new project altogether. However, it is all the same. The updated rule seems to be considered while scanning (I tested this by changing the severity of that rule from minor to blocker and that gets reflected in the scan issues list).

As per the built-in rule, a function with this name is not allowed as it has an underscore: swift_function.
However, for us, this is acceptable.

Is there anything else that needs to be configured?

Thank you!