def METHOD_NAME(dictionary):
    for key in dictionary:
        value = dictionary[key]
        if isinstance(value, str):
            dictionary[key] = re.sub(
                r"(" + "|".join(self._keys) + r")",
                self._replacement,
                dictionary[key],
            )
        elif isinstance(value, dict):
            METHOD_NAME(value)