Add a missing str.format call in onRegex decorator