Height is so variable no matter what parent heights are. The genes behind male pattern baldness for example are so complex that while a lot of it is describable by looking at your mother’s father’s hair, that’s only part of the picture and there are tons of ancient mutations that when combined in the right way will create baldness.
Height is a much harder to predict aspect because it involves genes around growth plate closure, hgh levels, when the growth spurt actually takes place, how much the torso grows (since it grows longer), limb length genetics, etc. A 185cm father and a 162cm mother can expect their sons to be about 182cm… this is based on studies that have been condensed down into orthopedic calculators and estimates. But realistically that son, without disorders, could range from 170cm to 195cm based upon that crazy combination of genes working either for or against your height potential. You start getting a slightly better idea of how tall you’d be if you look back three generations on each side, but even then that doesn’t explain a lot.
You didn’t stunt your growth as a kid unless you were severely malnourished to the point that in the world today largely only exists wide-scale in sub Saharan Africa, and even those countries have made large improvements to youth nourishment and hence have gotten a lot taller than they were under colonial powers. Even places like India today have the vast majority of their population at their genetic height potential.
So unless you live in a Cameroonian shanty town… and unless you chainsmoked a lot as a kid, drank lead paint or heavily contaminated water, or had major illnesses like cancer or pituitary gland problems… you didn’t stunt your growth. There’s no point in blaming yourself for something that was out of your control.
I guess if you want to have tall kids after surgery then make sure to marry women who are tall, even then no guarantees.