Function
fnmatch.translate

Signature

translate(pat)

Documentation String

Translate a shell PATTERN to a regular expression.

There is no way to quote meta-characters.