Just a quick update to this, turns out there is a method built in to the re module that escapes strings for you. So just running re.escape(psk) should do the trick.
Just a quick update to this, turns out there is a method built in to the re module that escapes strings for you. So just running re.escape(psk) should do the trick.