The regex(7) man page states (on character classes): (...) These stand for the character classes as defined in ctype(3). This should be wctype instead of ctype.
Will fix...
Fixed. Thanks.