Reading the re.escape() documentation, it says
Changed in version 3.3: The '_' character is no longer escaped.
Changed in version 3.7: Only characters that can have special meaning in a regular expression are escaped. As a result, '!', '"', '%', "'", ',', '/', ':', ';', '<', '=', '>', '@', and "`" are no longer escaped.
Question is, why # character is still escaped?