Validate repository names with a regex.