import re


def wordWithMiddleZ(a_string):
    """Assumes a_string is a string
    returns a boolean, True if a_string contains a word with "z"
    not at the start or end of the word.
    else False
    """
    regex = "[^z]z+[^z]"
    results = re.search(regex, a_string)
    return bool(results)