When a Beam Connection is created, the Coordinate System is Global.
That creates a problem when the length of the part changes, the beam is left behind.
You have to make a Coordinate System scoped to the geometry that is moving, then use that Coordinate System in the Beam definition.
Now the beam will follow the length change.
ANSYS 2021 R2 archive attached.