To keep the radius of a round rectangle constant when the y scaling is adjusted, divide the ry property by the scaling.
ry
Here, the scale is scale(1, ${s}), so ry is set to r/s.
scale(1, ${s})
r/s