Am I misunderstanding something here. The first command does what I expect. In the second one, the negation of the character set is ignored.
When I check this with the built-in regular expression checker, the expressions work correctly.
When I check this with the built-in regular expression checker, the expressions work correctly.