If you need to get out of the bike lane, it is your job to make sure it is safe to switch lanes, same as a car. You can't just jump into the main traffic lane in front of a car and complain the car was going too fast. You made an unsafe lane change.
That is all true.
However, it is equally true that a driver does not have an automatic right to overtake a cyclist in front of them who wants to use the main traffic lane. A cyclist obviously shouldn't switch lanes right in front of a car, but if a cyclist a little up the road wants to use the main traffic lane, they are perfectly entitled to do so. It is the following driver's responsibility to slow down and maintain a safe distance in that case, just as they would have to if a slower motor vehicle pulled out ahead of them on a multi-lane highway.
It's also worth pointing out that a driver who does overtake a cyclist, regardless of which lane they are cycling in, should be allowing as much space alongside as they would have when passing a car. That will almost certainly require crossing well over the centre line of the road on many urban roads in the UK. If a cyclist veering slightly into the main traffic lane ever actually gets hit by a car overtaking them, even if it was a mistake by the cyclist, it was also self-evidently a mistake by the driver.
Also don't complain when cars 'brake check' you going up hills. That's just payback for you slowing them down.
Doing that deliberately is illegal on several counts, and if you do it in sight of a police car you should rightly expect to get pulled up for it.
Many cyclists seam to think they have the right of way any time the alternative is they lose their inertia.
Some do, certainly, and they are wrong. There is no general right of way on UK roads, for a start.
But equally some drivers seem to think that they have the right to go as fast as they want to regardless of other road users, and those drivers are also wrong.
As I said before, the only credible way to improve this kind of situation is to ensure that the facilities for everyone using the roads are up to scratch and reduce the potential for conflict happening at all.