When converting wildcard syntax to regex, escape braces and brackets