keyword = 'my(regular)ex.pre$\\1' # ok since escaped keyword = 'my(regular)ex.pre$\1' # error!