While this does largely work, there are a few complications.
The biggest one being power management, especially the cutting off of power to a specific port. If a host wants to cut off power to a 3.x device, it typically needs to know which 2.x port that device is connected to. The host internally can have some really wild mappings of 2.0 and 3.x hubs, controllers, etc, but the device tree or ACPI tables let it know exactly which ones are paired together for any port leaving the device. After that point it is assumed that the host can learn the topology from any hubs attached. The power management is tied to the 2.0 port. Unexpectedly splitting the topology could lead the host to instruct a hub to cut off power to the wrong port when trying to target a specific USB 3.x device.
Also, if a hub indicates that a device is drawing excessive current, and there is nothing communicating on the 2.0 lines, there is a risk of the wrong 3.x getting blamed by the host, possibly showing a warning popup to the user with the wrong device name, or similar.
This isn't to say this is always a problem, because it isn't but it is something to be aware of.
In a lot of ways I experienced USB 3.0 as a regression.
Like the USB 1.0 spec described how you could hook up 128 devices or so devices to a port although it didn't promise it would work I can say I put together some pretty big USB 1.0 and USB 2.0 trees and they worked.
Back in the late 2010s I had numerous laptops which I would try to make a kind of "docking station" with USB audio and external storage and SD card readers and such and what I always found was that there was some resource limits somewhere in the system and at some point plugging in a new device would cause an old device to drop out which could possibly force the uncontrolled unmounting of a filesystem. Sure, today's commercial filesystems are robust against this, but I hate it.
I looked closely at the USB 3.0 spec and found it didn't make any promises at all about configurations involving hubs and came to the conclusion it didn't make sense to use hubs with 3.0 at all and if you didn't want to be miserable you should just plug in one device into one port on the host.
It's also just straight up not permitted per USB3.2, as USB3 devices are supposed to, per spec, be able to drop down to USB2 speeds. OS support varies, it might work, it might not.
FTA: > If you are building an inline USB-C tool where your MCU only needs a slow control channel and the host just needs fast passthrough to the downstream device, you might not need a USB 3 hub. USB-C gives you two independent buses in the same port. The OS knows they're both peripherals are assigned to the same logical connector.
This is bad advice in general because USB-C does not actually give you two independent busses in the same port.