The "onjoin" keyword appears to be broken in the latest 1.18.1 update. The chat mentions it being invalid on a reload, and mob modifications no longer work (e.g. zombie with more HP works before the update, but not after)
Versions:
Minecraft 1.18.1
Forge 39.1.2
InControl incontrol-1.18-6.0.3.jar