Fix syntax in 18.
Add Record require for 20.
Fix syntax and use of char lists with Regex.