I purchased this Abbree speaker mic a month or two ago and it seems to work fine on my Baofeng UV-9G. The pins in the pic match what I received. I haven't used it in the rain or anything yet to vouch for its long-term reliability.
https://www.amazon.com/dp/B08GLCS9BF?ref=ppx\_yo2ov\_dt\_b\_product\_details&th=1