[build] fix warning for Python 3.7 regexes