As far as I know, the only way to gain height through workouts is by fixing your posture. Your height is mostly tied to your genetics, and I might be wrong (fact check me on this, please), but height finishes developing at 21 years old for those assigned male at birth, and 18 years old for those assigned female at birth. Fixing your posture can earn you a couple of inches, but that's it.