I am not a motion graphics guy and I don't make these dynamic templates for Edit page, but there are a lot of tutorials on such things online, so I'm sure you can find what you need. Many are selling templates and there is a lot of competition to build more elaborate and elastic ones.
Here are some videos that should give you ideas to take it further.
KeyFrameStrecher _ All You Need To Know [Davinci Resolve] #tutorial #videoediting #fusion
How to extend/stretch your titles in Davinci Resolve? (Keyframe Stretcher)
How to Retime Title Effects Right with Keyframe Stretcher DaVinci Resolve 18 Fusion Tutorial
DaVinci Resolve's Secret Weapon - AnimCurves Explained!
EVERY Setting Explained Anim Curves In-Depth Free Visualization Macro DaVinci Resolve Fusion