Expected behaviour:
Plugin works consistently no matter python version.
Actual behaviour:
rtorrent plugin uses re.escape to handle its escaping needs, whose behavior has changed starting with python 3.7. It has not been verified whether this causes actual problems or not though.
More notes can be found in #2225.
Currently the test case is also using re.escape as a hack to keep things passing on all python versions, this should be removed.