The documentation for Series.str.replace says that it takes a "string or compiled regex" ... "String can be a character sequence or regular expression." ... "When repl is a string, every pat is ...
I instead have to do with_columns, with the expr for each pattern in a python for loop as a workaround. I also cannot put all the exprs in with_columns as i would get ...