Renaming roles not working

What is the best practice for renaming roles.
I found out the hard way …
You can rename them, but it is not changed anywhere …api/dashboard etc…
Is it a bug or unwanted feature?

4.2.6