If you using Debian/Ubuntu based system, and Wireguard having a problem with this error:
/usr/bin/wg-quick: line 32: resolvconf: command not found
You simply need do this (as root):
ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf
Reference: https://superuser.com/a/1544697