from typing import Optional
from typing import Match
import re


def find_word(word, src) -> Optional[Match[str]]:
    """Find word in a src using regex"""
    return re.compile(r'\b({0})\b'.format(word),
                      flags=re.IGNORECASE).search(src)