code: def separate_string(string):
      
      string_list = regex.split(r'<(?![!=])', regex.sub(r'>', '<', string))
      return string_list[::2], string_list[1::2]
docs: >>> separate_string("test <2>")
      (['test ', ''], ['2'])