I don't want to be redundant of other answers, which are all very good, but instead want to focus on the premise - that "gravity isn't a force". This is like saying "bowling isn't a sport." It's not a scientifically precise statement but is rather mostly thrown around to get headlines and attention - in the same category as "everything you learned in school is a LIE."
General Relativity/spacetime curvature is a model. Currently this is the best, most precise and most predictive model we have for explaining and predicting the phenomenon we call gravity. It is not, as others have pointed out, the only possible model. It is also, most physicists are fairly certain, not complete. It could even be wrong, i.e., spacetime curvature might not be "real" because spacetime itself might not even be a fundamental property of the universe. Conversely, it is possible to model the other interactions geometrically; they just don't work as well as quantum field theory and virtual particles. The only thing we know for certain is that there's something about gravity that makes it different from the other 3.
Gravity is a "force" according to the conventional definition you learned in school - A force is a push or a pull. Gravity is a pull. Therefore it's a force by that definition.
Another definition of "force" is something that causes acceleration. Well, gravity causes massive objects to accelerate toward each other. 2 for 2 so far.
But wait!, you say. Gravitational acceleration isn't really "acceleration" either, according to [insert recent popular YouTube video here]! Well, again, what's acceleration? If acceleration is the second derivative of distance with respect to time, then gravity sure as heck results in acceleration. If you instead want to redefine "accelerating" as following a path in spacetime other than a geodesic, because that model makes better predictions applicable to your particular problem, then you have every right to say gravity doesn't cause "acceleration".
So please do not fall into the trap of thinking gravity isn't a "force" and therefore all of its observed behavior is now inexplicable or the Newtonian model is useless for thinking about the world. General Relativity would never have been accepted if it didn't reduce down to Newtonian mechanics at everyday limits. Gravity is absolutely a "force" for all intents and purposes relevant to the question, and the inverse square law works perfectly fine to explain why gravity causes extremely massive objects to tend toward spherical shapes.