code: def get_color_names(self, format_string):
          
          names = set()
          # Tokenize the format string and process them
          for token in self.tokens(format_string):
              if token.group("command"):
                  name = dict(parse_qsl(token.group("command"))).get("color")
                  if (
                      not name
                      or name in COLOR_NAMES_EXCLUDED
                      or name in COLOR_NAMES
                      or name[0] == "#"
                  ):
                      continue
                  names.add(name)
          return names
docs: Parses the format_string and returns a set of color names.