Translates an aws s3 sync glob into an anchored regex, following Python's
fnmatch (which aws s3 sync filters use): * = any run of characters
(including / and the empty string), ? = one character, [seq] = one
character in seq (ranges like [0-9] allowed), [!seq] = one character
not in seq, everything else literal. An unclosed [ is literal. Used by
schema_glob_check(). The result is a PCRE regex: match with perl = TRUE
(escapes inside [...] are not portable to R's default TRE engine).
