The following call fails in minimatch 10.1.1:
> minimatch('foo', ',[[:space:]]')
SyntaxError: Invalid regular expression: /^\,[\p{Z}\t\r\n\v\f]$/u: Invalid escape
(The actual glob where I ran into this is more complex of course, and the comma usage therein makes more sense, but I figured a minimal repro would be better to report the issue.)