Update utils.py

Couldn't import the module regex, so changed it to re.