No mention in the documentation, no easy workaround. A hard workaround is to abandon the IOHID API for CGEventTap all together.
If you have a fediverse account, you can quote this note from your own instance. Search https://bsky.brid.gy/convert/ap/at://did:plc:7kz5fuok6aeujssccwrbvroo/app.bsky.feed.post/3mfnhuxme722t on your instance and quote it. (Note that quoting is not supported in Mastodon.)