Replaced string fallback query with an all-flags regex, enabled all flags for explicit regex