in reply to Re: substitution problem with ()
in thread substitution problem with ()

Or, in one go (and IMO simpler):
s/\Q$from_re/$to/;

"\Q$string" is the same as quotemeta($string), both in a doublequotish string and in a regexp.