Realtek RTL8812BU drivers for macOS are unofficial and require custom builds. Search for "Chris1111 Wireless USB Adapter" on GitHub. Standard Kasens does not support M1/M2 Macs natively.
If your computer doesn't detect the adapter, try plugging it into a different USB port. If the problem continues, restart your computer with the adapter connected. wireless usb wifi adapter kasens ks-g5000 driver
This is the most skipped step, but also the most important. Realtek RTL8812BU drivers for macOS are unofficial and
The driver might be set to a region-specific band. wireless usb wifi adapter kasens ks-g5000 driver
If you want, I can: