I doubt that the driver you linked to is suitable for your Mac M2. Those legacy drivers pre-date the changes in the security architecture of kernel extensions and USB.
To my knowledge macOS has included a CH340 driver for quite some time now and you should be fine without a driver.
Did you have a previous driver inherited from an old installation ?
note this as ESP32 are USB 2
Check the USB hub: If the device is connected to a USB hub, make sure the device and the hub are the same speed. Connect USB 3.0 SuperSpeed devices to a USB 3.0 SuperSpeed HUB, USB 2.0 Hi-Speed devices to a USB 2.0 Hi-Speed hub, and so on
right now is connected from USB-C to USB-C. But previously I tried with a hub, without the hub, USB-C to USB-A. nothing work before I installed that driver.
in any case, if you're going to connect an ESP32 to your Mac and it works, you don't need this input. It is only for those who found a problem connecting an ESP32-C6 to your MAC M2.
Which OS version do you have on that Mac and was that a blank install or you migrated a time Machine from a previous machine? (if you started by doing this (wether through migration / installation) and did not remove the driver and all its traces then you could have a conflict with Apple's builtin driver too)
I don't have a M2 to test with nor your specific ESP, so hard to tell.