Shikabashi The following video may be helpful to you:
【挤压和拉伸装配 - Spine技巧#1】 https://www.bilibili.com/video/BV17q4y1C74K/?share_source=copy_web
The rig introduced in the video linked above utilizes the Local option of transform constraints. This setup allows the bones on the left and right sides of the ball to move along the local direction when the top of the ball is moved:
To perform this trick, the left and right bones have a container bone with the suffix “-container” as their parent. These container bones are rotated 90 degrees or -90 degrees, but the local rotation of the left and right bones is 0 degrees. In this way, you should be able to achieve the results you're looking for.