Full article: https://www.notion.so/ahmedtokyo/First-and-Last-name-validation-for-forms-and-databases-ab29ca4a5d7a4f848375904649b3be6e
This will work pretty well with all world regions.
const NAME_REGEX = /^[a-zA-Z\xC0-\uFFFF]+([ \-']{0,1}[a-zA-Z\xC0-\uFFFF]+){0,2}[.]{0,1}$/
/** Validates a name field (first or last name) */
const isValidName = (name) => NAME_REGEX.test(name)