def cast_config(cls, config: typing.Mapping[str, str]) -> typing.Dict[str, str]:
        """Cast `config` to grouped regular expressions."""
        return {k: cls.cast(v, k) for k, v in config.items()}