Getting macros for Emacs right is an abysmal pita, as the output of the macro must be valid Elisp code. This usually requires a wild mix of expansion/evaluation or not of the macro parameters in the right places. If you have not done this for the last umpteen years, you will (no subjunctive, you WILL) screw up first.
To make the task a easier I tried a macro to (a) dump the macro expansion of your macro and (b) let it go wild.
https://codeberg.org/harald/Codeschnipselnotizen/src/branch/main/elisp/tracemacro.el
@HaraldKi Of course it must generate valid Elisp. If this is surprising to you, I think your mental model may be slightly off. A macro is just treating executable code as a list of symbols. That's really all there is to it.
Besides, I rarely write any code right the first time xD
@yantar92 Looks good, will try it next time.