This happens in real life.

A bike rider was cruising along on a nice sunny day. Riding a bicycle while in city traffic is always a dicey proposition. Cars often inadvertently weave directly toward bike riders or veer precariously into reserved bike lanes and pinch or endanger the cyclists therein.

https://www.forbes.com/sites/lanceeliot/2021/06/21/whether-bicycle-riders-will-still-get-conked-by-car-doors-being-opened-even-in-an-era-of-ai-self-driving-cars/