This works:
julia> module SM
macro m2(ex)
Core.eval(__module__, ex)
end
end
Main.SM
julia> @SM.m2(Foo)
Foo
Presumably, you are aware of “don’t use eval in macros”.
PS: where did your code come from, if I paste it I get ERROR: syntax: invisible character \u200b near column 1?