I am looking for a way to share a docking station (with USB C output) between two computers, like a switch or something similar.

This is a diagram to illustrate my thought.
I have heard of KVM but it looks a bit expensive.
Is there such a switch that share a docking station between two computers?