If you can afford it, I'd honestly throw these out. "Charging only" is not a spec-compliant thing in USB-C, and personally I wouldn't want to re-discover which devices do and don't support them every time I just want to quickly grab a cable.
What's less easy to replace are all these damn USB-C devices lacking the UFP-identifying circuitry that only work on USB-A chargers using A-to-C cables...
To be clear, they're not literally "charging only", AIUI they're spec-compliant cables with USB2.0 480Mbps and power delivery, and they're allowed to not have the four SuperSpeed wire pairs. They're still useful for low bandwidth devices (like charging my keyboard/mouse).
Incidentally — I spent an inordinate amount of time searching for USB3.2 cables on Amazon, and the vast majority of cables were actually just USB2.0 cables with PD support, and not actual Full-Featured cables.