import re


def replace_word(word_input: str, one: str, two: str) -> str:
    """Regex replace on just words"""
    RE_WORD = re.compile(r"\W(%s)(\W|$)" % one, re.I)
    matches = RE_WORD.findall(word_input)
    if matches:
        for _ in matches:
            word_input = word_input.replace(one, two)
    return word_input