The average space metric is flat for any stationary observer on its proper time path. Hence all local gravitational sinks compensate the general expansion.
A more clearer view is revealed by GR spacetime equations without lambda.
Gravity does no have any relation with expanding universe. Our universe is a complete well-organize and most accurate entity, that by nature is growing Yet, nothing is working with mechanically push/pull (gravity) as our icons thought.
Article Quantum Mechanics Gravity, Mechanical Gravity of Newton is Myth
The universe has the structure of a 3-sphere. A 3-sphere has circular geodesics. This structure determines gravitation on the large scale without any expansion.