Apple discontinued allowing USB Wifi adapters. All the ones I know of require an operating system driver, which Apple no longer allows.
What's guaranteed to work is the following combination:
- A Wifi range extender that has an Ethernet port (almost all do), preferably one that simply plugs into a wall socket.
- An Ethernet adapter with USB-C that works on your Mac.
- An Ethernet cable to connect the two.
Instead of using #1 as a range extender, you put it into AP mode (might be called bridging mode). This simply does the setup to convert the wireless connection into an Ethernet connection.
The key point is that a USB adapter requires an OS driver, whereas the range extender has the smarts to do that within itself.
Examples of #1 are TP-Link models RE215, RE220, RE300, RE500X, RE505X, WA850RE, with different prices depending on Wifi speed and Ethernet port speed.
Examples of #2 are from Belkin, Anker, and others. Again, different models have different Ethernet port speeds. Apple sells the Belkin, guaranteed to work. You could also use a USB-C hub that includes an Ethernet port.
This will work with all M1, M2, and M3 Macs that have a USB-C port.