MEX means Mexican code.
Similarly, there are EUR European sizes, UK sizes, and US sizes, which are all size standards of different regions and countries.
These sizes often appear on the collars of clothing from European and American brands such as Zara and Pulllamp; Bear.