Did a dumb overtake of a cyclist today

On this road there were two cyclists, and I saw a car do an overtake of one of the cyclists to get in between both of them, and then take off afterwards. Because I saw this driver do this, I thought there may have been enough space to do this.

So I did the exact same thing, I tried to fit into the gap between the two cyclists before attempting to overtake the first cyclist, there wasn’t enough room though I definitely should’ve given them space, but after this the front cyclist brake-checked me in the middle of the empty road and waited for the other cyclist to catch up.

After this they both were split across the middle of the lane so an overtake would now be impossible, and I realised one of them had a camera on their helmet, so was wondering am I cooked? I left around a metre of space when trying to fit into the gap but I realised I did get a bit too close to the cyclist especially as they started slowing down a lot after they have seen that I had overtaken their partner forcing me to start braking along with them.