docs: def is_string_type(type_):
      """ Checks if the given type is a string type.
  
      :param type_: The type to check
      :return: True if the type is a string type, otherwise False
      :rtype: bool
      """
  
      string_types = _get_types(Types.STRING)
      if is_typing_type(type_):
          return type_ in string_types or is_regex_type(type_)
      return type_ in string_types