I am using regex to remove certain substrings in a string and I am encountering situations where the range is shorter than the actual string\'s length when emojis are presen