def validate_ip_values(self, ip_list):
        """
        To validate IP data before making API call.

        Args:
            ip_list (list): A list of IPs to validate.

        Returns:
            list: A list of valid IPs.
        """
        valid_ip_values = []
        for ip in ip_list:
            parsed_ip = ip.replace("[", "").replace("]", "")
            if not self.utility_obj.validate_ip_domain(
                indicator=parsed_ip,
                indicator_type="ip",
            ):
                continue
            valid_ip_values.append(parsed_ip)
        return valid_ip_values

        To validate IP data before making API call.

        Args:
            ip_list (list): A list of IPs to validate.

        Returns:
            list: A list of valid IPs.
        
Solutions/Team Cymru Scout/Data Connectors/TeamCymruScout/IPDataCollector/ip_collector.py