That's a USB B connector. Printer cables generally have one end as USB A (the one that you plug into your computer or USB hub) and the other end USB B (plugs into the printer).
There are two varieties of USB type B connector. Yours is a USB 2.0 type B and the one you are looking at is USB 3.0 type B and is not downward compatible. I am guessing the other end of the cable you have is a USB type A. Your best option might be a USB C to USB type C adaptor on that end and keep the cable you have. From experience, my preference would be this adaptor as least likely to become disconnected.
Sadly, I cannot find the 2nd of the two it came with to have on hand as backup.
So was thinking instead of buying it again; (which just about to do) I thought, why not eliminate the adapter from the mix altogether; and just get new cable with correct things on both ends?
Eliminating the adapter is, in my opinion, preferable. However, finding a USB C to USB 2.0 Type B is going to be a challenge. I have never run across one and I have spent a lot of time and money on various USB C adaptors in the last few months. Note: It is difficult to find, and identify, USB C to USB 3.1 gen 2 type A adaptors as well and the normal USB C to USB 3.0 adaptors cut the thruput from 10 Mb/s to 5 Mb/s. Probably not an issue with printers or speakers but a significant slowdown for other devices.
The USB standard is a mish-mosh and has been from the beginning. Just read through this Wikepedia article on USB hardware and connectors (types A, C, and now C). The protocols, their naming (USB 2.0, 3.0, 3.1, 3/1 gen 2, 3.2, and now 4) and the associated connectors with each is even more baroque.