If that is the correct driver, it is available via the AUR (Arch User Repository). You will have to enable AUR support in Pamac. You will also have to make sure that you have the base-devel package installed in order to build AUR packages. It looks like this particular software will require dkms to be installed as well as possibly the appropriate linux headers for the kernel that you are running.
That being said, the VM will take on the network attributes of the host machine so, I am uncertain if you will be able to test adequately.
In Pamac GUI or in terminal
terminal:
pamac install dkms
pamac install base-devel
linux headers, e.g. Linux 6.6 pamac install linux66-headers
pamac build rtl88x2bu-dkms-git
reboot