It's a push mechanism to hold either strings or other things in place.
Its very tight tolerance might need some post sanding to get the parts to fit together also the spring needs to be thin but sturdy.
Made it as a concept for knitting needle holders.