Here are two options for pegboard hook stoppers. My wife needed these to keep her products from wandering away during her markets.
One is rigid, and slide over the end, the flexi option “snaps” on.