The problem with openSCAD is that you cannot modify it easily. I had made a complex geometry several years ago in openSCAD and I have been waiting for a model that can actually convert it into a python script that generates freecad parametric sketches that recreate it in an editable way. All frontier models fail at this, some more spectacularly than others (gemini never spent 40 minutes / $4 trying and failing, but opus 4.6 did).
Your ball looks well parametrized to me, what kind of editing are you missing from it? Unless you want to change the shape of the locking mechanism altogether, which I think would be a chore in any format.
OpenSCAD is ideal for making models that can be modified! You have to program your models with the mindset of parametric CAD though, if I was making a battery case I would start by defining variables for battery length, diameter and count and work from there.