code: def split_on_stars_interpreting_backslashes(s):
      r'''We don't want to do in-place substitutions of a regex for *, because we
      need to be able to regex-escape the rest of the string. Instead, we split
      the string on *'s, so that the rest can be regex-escaped and then rejoined
      with the right regex. While we're doing this, check for backslash-escaped
      *'s and \'s, and leave them in as literals (to be regex-escaped in the next
      step).'''
  
      star_indices = [
          match.end() - 1 for match in re.finditer(UNESCAPED_STAR_EXPR, s)
      ]
      literalized_parts = [
          part.replace(r'\*', '*').replace(r'\\', '\\')
          for part in _split_on_indices(s, star_indices)
      ]
      return literalized_partf split_on_stars_interpreting_backslashes(s):
      r'''We don't want to do in-place substitutions of a regex for *, because we
      need to be able to regex-escape the rest of the string. Instead, we split
      the string on *'s, so that the rest can be regex-escaped and then rejoined
      with the right regex. While we're doing this, check for backslash-escaped
      *'s and \'s, and leave them in as literals (to be regex-escaped in the next
      step).'''
  
      star_indices = [
          match.end() - 1 for match in re.finditer(UNESCAPED_STAR_EXPR, s)
      ]
      literalized_parts = [
          part.replace(r'\*', '*').replace(r'\\', '\\')
          for part in _split_on_indices(s, star_indices)
      ]
      return literalized_parts
docs: r'''We don't want to do in-place substitutions of a regex for *, because we
      need to be able to regex-escape the rest of the string. Instead, we split
      the string on *'s, so that the rest can be regex-escaped and then rejoined
      with the right regex. While we're doing this, check for backslash-escaped
      *'s and \'s, and leave them in as literals (to be regex-escaped in the next
      step).