I am making a User Defined Language for Adblock Filter Lists in Notepad++. I want to create a delimiter group that highlights regular expressions, as marked by a forwards slash /.
After making my delimiter group, I realized that / works differently outside of cosmetic filter groups*, (##), which resulted in items like URL paths getting highlighted by mistake.

I thought I could use nesting styles so that the / delimiters would only activate when nested inside a ## group.

The :has-text example was highlighted as expected, but the backlashes prior to the ## group are still getting highlighted.
How do I define a delimiter in a Notepad++ UDL that only activates if it’s nested inside a different delimiter group?
*There are other scenarios where / would need to be escaped inside a ## group, but I’m using this as a simplified example


