I am trying to remove a substring using regex in Python.
The substring could be the entire string, at the beginning, in the middle, or at the end.
The goal is