Google image "spring clip" - first one looks sorta close like what you are after, if not you will find it there somewhere!
It’s a spring latch and pin/stud. Might struggle to find a direct replacement though.
https://apexfasteners.com/fasteners/screw-machine-products/ball-studs-and-receptacles
these look a little similar not sure about the clip