what I am trying to achieve:
country = "United States (USA)"
out = rf"<title>{country} ([\d\.]*.?)</title>"
I want the above to give me
out = rf"<title>United States \(USA\) ([\d\.]*.?)</title>"
but it does not escape the parentheses.
When I try
country = "United States \(USA\)"
out = rf"<title>{country} ([\d\.]*.?)</title>"
I instead get
out = rf"<title>United States \\(USA\\) ([\d\.]*.?)</title>"