In general relativity acceleration is more complicated than it is in Newtonian mechanics. We normally think of acceleration as $d^2x/dt^2$ but in GR it is possible to have accelerating rest frames. For example if you are in an accelerating car then in your rest frame $d^2x/dt^2 = 0$ because, well, it's your rest frame so your $x$ coordinate is constant at zero.
But even if all the car windows were blacked out, so could not check your surroundings, you would be able to tell you were accelerating because you could feel the g force pushing you back into your seat. And if you dropped an object you would see it accelerate away from you - it would be you accelerating, not the object, but it would look to you as if it was accelerating away from you.
And in fact this is key to defining a measure of acceleration that all observers will agree on regardless of their rest frame. Suppose you drop an object and it accelerates away from you with some acceleration $a$ that must mean your acceleration is $-a$, and we call the magnitude of this your proper acceleration. This proper acceleration is a Lorentz scalar meaning that all observers will agree on it.
The proper acceleration can be a bit counter intuitive. For example if I drop my pen it will accelerate away from me at $-g$, and that must mean my proper acceleration is $g$ even though in my coordinates I am stationary in my chair. Conversely if you jump out of an airplane above me (ignoring wind resistance) your proper acceleration is zero until you open your parachute, even though I would measure you to be accelerating towards me. In GR terms I would be the one accelerating upwards towards you. For more on this see How can you accelerate without moving? and If gravity isn't a force, then how are forces balanced in the real world?
Anyhow, the objects that we see accelerating away from us due to the expansion of the universe have a proper acceleration of zero. Their acceleration is like your acceleration when you've just jumped out of the plane. Even though we see the objects accelerating those objects would feel themselves to be weightless just as you feel weightless when you're free falling.
By contrast one of Elon Musk's rockets accelerating away from the surface of the Earth has a non-zero proper acceleration and if you were in that rocket you'd feel high g forces not weightlessness. So this difference in the proper acceleration is how we tell the difference between the two types of motion.