Fix import error for `re`.