[fr] text formatter: fix warning for regex (Python 3.7)