Support extended syntax in Regex.escape