It's not a regular grammar. Regular expressions were designed to handle regular grammar, and there are cases where something that looks valid is actually invalid:
ex@256.255.255.255.
(See the above posters link: https://nikic.github.io/2012/06/15/The-true-power-of-regular...)