I can confirm that this type of solution works. I went down a real rabbit-hole of trying to get everything working in Docker and eventually gave up. My current configuration is:
Homey Pro → Mosquitto (prod) running on metal → zigbee2mqtt running on metal
SHS running on docker → Mosquitto (test) running on docker → Mosquitto (prod)
This is (similar to) the configuration that @Frankman talks about in his last paragraph…