Added r'' raw string marker where re module is used and regex expression is passed. Here as well I was not able to reproduce the issue.
r''
re