Added import for the regex module.