I have these Shure SE215 in-ear monitors that detach from the cable using the MMCX standard. If a wire breaks, it's cheap to swap out, I can swap from a 3.5mm to a usbc to Bluetooth. There are probably other earbuds that use the standard too (I think there are a few standards?)
But ultimately this means, as long as I don't lose them I can repair/replace the wire as needed.