Hi, @Nr.5-need_input. I'm sorry that you have encountered a problem with this macro.
I suspect that you are not using Keyboard Maestro v11+. If that's the case, my ability to help is limited as I've upgraded my three macs.
As I stated elsewhere, I'm generally not targeting Keyboard Maestro pre-v11, but this macro was an exception because I had seen @adamg's request for a macro that would be v10.2 compatible.
As I was creating Edit a Recently Executed Macro, @adamg and I exchanged PM's. An earlier draft of this macro was working for @adamg's v10.2, but since that draft, I did make a few changes. My assumption was that none of the changes would be incompatible with v10.2.
If @adamg or some other v10.2 user downloads, tests, and reports back, we'll at least know if this is related to the Keyboard Maestro version or something else unique to your system.
In the meantime, @Nr.5-need_input, to troubleshoot, I suggest you insert a Display Text action after each JXA action and display local_MreJson and local_MrePwlList, respectively.
2024-09-14 Edit: @Nr.5-need_input, please refer to the OP of Edit a Recently Executed Macro. It has been upgraded to Version 2.0 which I suspect will address the error you mentioned above. Thanks for your feedback.