No, providing multiple versions is not helping. Because the breakage is caused by kernel-4.18.0-394.el8.x86_64, not wireguard-dkms-1.0.20220627-1. If you do have the older kernel-4.18.0-383.el8.x86_64 installed, you can run the following command to rebuild the wireguard module successfully: sudo dkms install wireguard/1.0.20220627 -k 4.18.0-383.el8.x86_64
The wireguard module built for 4.18.0-383.el8.x86_64 can be used on 4.18.0-394.el8.x86_64.
