Use Regex objects by value (rather than 'new'ed) in CodeGenSchedule.