Regular expression no longer works


I had the below formula for stripping the name of the Sonos speaker out of mi(artist) and it worked just fine, I had to factory reset my phone and now this formula no longer works.

It returns the error literal can't follow another literal, has anything changed

$tc(reg, tc(reg, mi(artist), "^[^\-]*", ""), "^.{2}", "")$