def check_and_normalize(cls, data: Dict) -> Dict:
        """Check and normalize entries inside include/exclude"""
        for key in ["include", "exclude"]:
            entry = data.get(key)
            if entry is None:
                continue
            if entry == []:
                raise ValueError("scope include/exclude specification requires at least one matcher")
            for inc_exc_params in entry:
                for attr_name, regex_or_regexes in inc_exc_params.items():
                    if isinstance(regex_or_regexes, str):
                        regex_or_regexes = [regex_or_regexes]
                    inc_exc_params[attr_name] = regex_or_regexes
        return data
Check and normalize entries inside include/exclude
src/robusta/utils/scope.py