There are invalid escape sequence warnings where raw strings should be used for the regex patterns
Fixes: https://github.com/scylladb/scylladb/issues/24915
Closes scylladb/scylladb#24916
(cherry picked from commit fdcaa9a7e7)
Closes scylladb/scylladb#24968