This is a model of the plug part for Xiaomi Mijia handheld vacuum cleaner. It can be used to make your own custom connectors.
The button that locks the plug in place is designed to be flexible enough that a spring is not needed. The long flat part is intended to be inserted and glued into the socket base.