To form such a flexible portion by turning, deep, thin cuts in the bar stock are needed.
Compliant pin connectors as described are formed either by stamping from sheet metal and rolling into the final generally cylindrical shape, or by cold heading.