Tried with curve network - here is the result and the file.
Thanks.
firstly, the peg is not flat as you modeled, you need to make ‘3d’ curves. I would model it as three shapes, then try fillet, boolean, trim, blendsrf… to create smooth transitions. The top peg can be make with a single profile, using 2 rail sweep, for the bottom i used pipe command:
Thanks a lot! A thought first to make it flat and then use the Bend tool for the final shape - as I did with another peg.