Build custom kernel snap for Ubuntu Core 22

The goal is to use Ubuntu Core 22 on IoT devices as a base. I need to include a custom proprietary driver as kernel module. I tried the following guide Building a kernel snap but this seems to target the base core18. The kernel plugin is only available for core18 based snaps.

  1. Is is possible to build a custom kernel snap with core22?
  2. Does the kernel snap with core18 works also with Ubuntu Core 22?
  3. Why is there no supprot for core 22?
  4. When building with snapcraft I get the exception:

‘collections.OrderedDict’ object has no attribute ‘diff_properties_of_interest’

In /snap/snapcraft/10085/lib/python3.8/site-packages/snapcraft_legacy/internal/pluginhandler/__init__.py properties = state.diff_properties_of_interest is accessed which does not seem to exist.