For UID I've found only a 16bit and 32bit versions, but for the username I wasn't able to find any clear standard. https://unix.stackexchange.com/questions/157426/what-is-the-regex-to-validate-linux-users