code: def _separate_exclude_cases(name, exclude_prefix):
          
  
          excluder = re.compile('|'.join(exclude_prefix))
          split_entries = excluder.split(name)
          return {'clean_name': split_entries[0],
                  'excluded_countries': split_entries[1:]}
docs: Splits the excluded
  
          Parameters
          ----------
          name : str
              Name of the country/region to convert.
  
          exclude_prefix : list of valid regex strings
              List of indicators which negate the subsequent country/region.
              These prefixes and everything following will not be converted.
              E.g. 'Asia excluding China' becomes 'Asia' and
              'China excluding Hong Kong' becomes 'China' prior to conversion
  
  
          Returns
          -------
  
          dict with
              'clean_name' : str
                  as name without anything following exclude_prefix
              'excluded_countries' : list
                  list of excluded countries