scanner: add syntax validation for uuids