title: Pandas dataframe regex replace not working in new version
body: <br>
  This code used to work in older pandas versions (0.24.2), but throws error in current version (1.3.0): *ValueError: Series.replace cannot use dict-like to_replace and non-None value*.
  <pre><code>import pandas as pd
  
  a = pd.DataFrame([['the quick red fox jumps over the lazy dog','red|over'],['red is the color for danger','red']], columns=['text','match'])
  a['text'].replace(r'('+a['match']+')', r'&lt;*\1*&gt;', regex=True, inplace=True)
  
  print(a)
  </code></pre>
  <p>How can I make it work on  the newer version?<br></p>