I guess you would need to install the kernel module on your host and then either the kernel module is automatically available in your container (How to use linux.kernel_modules) or you would need to load the kernel module into your container (According to the link, this does not seem to be necessary (anymore)).
This would be done with:
linux.kernel_modules: wireguard #wireguard is only the example of course