Apparently using regular expressions is way easier.
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
Tagged and tested. Quite complex methods btw.