For some reason on forge-1.15.2-31.2.0 and below (from what I can tell) the "/execute in (dimension) command", when targeting entities other than players, doesn't work. The command simply clones the entity you have targeted and teleports them to that dimension with the coordinates you put in.
In these videos I have a custom shovel with the unique tag "void:1" that, when it hits an entity, teleports them to the end. In the first video you can see it doesn't work, but in Vanilla Minecraft it will teleport the entity.
Forge Version forge-1.15.2-31.2.0 doesn't work:
https://gyazo.com/8d5239880c887f38bf9bd6aacd362402
Vanilla Minecraft 1.15.2 works:
https://gyazo.com/cb780d7b912b35b42281fc08436d4537
Here is the debug log: https://pastebin.com/Ab29KyhE (don't know if this will help since this seems to be a behavior difference with the command)