resolve "Unescaped left brace in regex is deprecated" warning (new in 5.21.1)