Hello @leo ,
AFAIK, there is no support for the escape characters you mentioned.
However, you mentioned that trying to escape the special characters resulted in malformed decodeURI input.
Did you try to URI encode your scope segments?
@sdirix Yes, I agree. While a possibility to escape characters is certainly useful, this should be done in a proper way and then also be documented to make it clear to adopters which approach they can use.