You can with smallish effort accomplish this using Home Assistant, I don't think Flic app nor IFTTT can do this as they would have to know what your Sonos is doing when you execute the action. If it doesn't matter what was happening before the button press, then IFTTT and for example Alexa can be used for this.