Don't fail when a pattern has an unclosed '[', instead take the '[' literally. This is to avoid Pattern::new/glob failing and it matches the Python fnmatch behaviour.