The 'message' argument is a regex so you need to escape brackets and the
likes. Strange that this worked on py27.
This was coincidentally fixed by Ib9f735216773224f91ac7f49fbe2eee119670872
in Train but this change is backportable while that one is not.
NOTE(mriedem): The conflict is due to not having change
Ib9f735216773224f91ac7f49fbe2eee119670872 in Stein, as
Signed-off-by: Stephen Finucane <email@example.com>
(cherry picked from commit