Add missing import re and fix variable name