Implement TranslateRegex UseCase.