import re


def contain_words(text, words):
    """Check if a string contains any of given words

    Parameters
    ----------
    text : str
        query string
    words : list of str
        target words

    Returns
    -------
    bool
        whether string contains at least one of given words
    """
    return re.search(r'\b{}\b'.format('|'.join(words)), text,
                     re.IGNORECASE) is not None