For future reference, assuming you are not using Homey Cloud, to make that somewhat less of a burden:
- Before you delete the non-functional Sonos devices, open the Homey Developer Tools, go to the Devices section and note/write down the Device ID of each Sonos speaker;
- After removing and re-pairing the devices, the Sonos speakers will have a new device ID, rendering your flows non-functional;
- Replace the new IDs with the prior one by using this script provided and explained in this topic: [HOW-TO][Pro][Cloud] - Tool to FIX (advanced) flows after removing and re-adding devices . After updating all IDs your existing flow should work again.