def filter_files(self, filter1, filter2, unfiltered_list):
        """Filter the given files list.

        Args:
            filter1 (str): first string to search
            filter2 (str): second string to search
            unfiltered_list (list): list to filter


        Returns:
            list: filtered files list
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            applogger.info("The filter names are {} and {}".format(filter1, filter2))
            pattern = r"{filter1}_\d+_{filter2}_\d+".format(filter1=re.escape(filter1), filter2=re.escape(filter2))
            filtered_list = []
            filtered_list = [i for i in unfiltered_list if re.match(pattern, i)]
            return filtered_list
        except Exception as error:
            applogger.error(
                "{}(method={}) : {} : Error while filtering files, Error-{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.NETSKOPE_REMOVE_DUPLICATES,
                    error,
                )
            )
            raise NetskopeException()
Filter the given files list.

        Args:
            filter1 (str): first string to search
            filter2 (str): second string to search
            unfiltered_list (list): list to filter


        Returns:
            list: filtered files list
        
Solutions/Netskopev2/Data Connectors/NetskopeDataConnector/StorageToSentinel/remove_duplicates_in_azure_storage.py