Updated the regex for the name pattern

Updated the regex for the name pattern to allow the `'`

issue: A24Group/Triage#4998