import re


def regex_boolean_detect_creating(text_item):
    """
    This helps with detecting the ready-state of a new/being made 
    dynamoDB table, checking to see if the status = "creating"
    """

    # look for the pattern of: tablestatus = creating
    pattern = r"'TableStatus': 'CREATING'"

    # run regex to search for the pattern in the text 
    results = re.findall(pattern, text_item)

    # return a boolean for True if the text is found
    return len(results) == 1