In the USB hubs there’s usually a diode to prevent the power current flow from devices to host.
I own an USB 2.0 hub with external power. I disassembled the hub an soldered a jumper over the diode.
I attached the hub to a USB-C – USB-A female cable and the charger to the external power input of the hub and it works.
It also works if tha charger is connected to a device port with a USB-A male – USB-A male cable (USB extension cable + USB-A male-male gender changer).