Now I'm very confused. I think your method of debugging the regex is incorrect somehow.
The author (Dario) says, "Just don't forget that bracket expressions are an exception to that rule--inside them, all special characters, including the backslash ('\'), lose their special powers (i.e., "[*+?{}.]" matches exactly any of the characters inside the brackets)."
Is he wrong?
This would mean that the regex:
[\$x]
should return characters that are "\", "$", and "x". Right?
In your debug, however it returns something different; the "\" is working as an escape.
Is that because it's the first character in the regex?
Misha