Renaming filter rule value

Good day!
I am trying to look at filter rules in details and make a change only in a rule value.
As a desirable option I want to rename it according to filter’s name. I have tried using nodes FilterRule.ByRuleType and ParameterFilterElement.ByRules. I found the closest topic on the forum (Help to get each filter name along with filter rule value). But there is no clue.
How can I solve it?