You can make a USB-C male to USB-C female extender cable work both sides just fine if the duplicated D+ and D- pins are connected together on the female side.
Where you might run into problems is the extra high speed pairs on the outside, for those the devices have to detect the orientation and swap them around using a mux chip. So the extender cable would need to have such a mux inside it, pretty sure the chinese don't go to that sort of effort to make that forbidden out of spec cable work for USB3/HDMI..etc
Also the high current 5A cables are supposed to have a marker chip inside to identify it as a high current capable cable, there is no way to have such a marker in a extra extender cable. Worse even, plugging in a cable with a high current marker chip will 'upgrade' the extension cable to being high current regardless if it is a high current cable or not.
When the spec specifically forbids doing something, there is usually a good reason it does so.