For power delivery you need a cable rated for it. Cables can have the same USB specification but different power limits.
Typically to charge a Laptop you want a cable rated for 60W power delivery or higher. I would just go with 100W rated cable as the price is reasonable.
Check out https://www.fs.com/c/25g-smb-switches-4247
FS have inexpensive switching and SFPs. Even if you get another brand switch I still recommend FS SFPs which can be ordered for compatibility with various vendor equipment.