I had the exact same problem about 3 months ago. I had rolled my 950 and door wouldn't stay closed afterwards. You could see were the door didn't line up like the other side. (Look at the different size gap from door to body)
Latch wasn't replaced. Just had to adjust the door, using the bolts at the rear of the door first to line it back up (door open - 4 bolts, 2 just loosen to adjust only) , make it look like other side.
then got a piece of wood and a hammer and used wood as a pry to bend the latch back.
Took about 15 minutes to fix it at the park, so not long. Just keep comparing the 2 sides so that you can see what the bad side needs to look like.
Driver side door latch won't stay closed on my 2022 z950 Sport. Any bump or wind and the door fly's open. Latch seems to have a lot of play compared to passenger door and is easily triggered. Dealer has ordered me a new latch. For now have to bungee the door closed when riding. Anyone with similar experiences? solutions?