This happens very specifically in that case since resolving enum values and injecting the resolved values into AST is two consequent passes. Macros are not affected.
I have fixed this for 1.0.27 (which I'll apparently have to release tomorrow since 2.3.1 beta removed a constant that's referenced in the extension), but if you need this urgently, contact me with your purchase reference (email for itch, email + purchase ref ID for marketplace) and I'll send you a GML file with that hotfixed.