If you’re going to use macroexpand, I’d recommend using @macroexpand1 ex / macroexpand(module, ex; recursive=false), because that way you won’t accidentally end up expanding any inner macros buried in ex.
2 Likes