When Romans 3:10-12, said...
As it is written:
“None is righteous, no, not one;
no one understands;
no one seeks for God.
All have turned aside; together they have become worthless;
no one does good,
not even one.”
Key phrase!
All have turned aside; together they have become worthless.
It does not say....
All have turned aside; together they have always been worthless.
They made themselves become something worthless by resisting the drawing of God.
Romans 3:10-12 is commentary on what becomes of the self righteous unbeliever
who resisted the drawing of God, and continued trying to be what they considered to be good as to earn salvation. It is a commentary of the state of what those religious Jews made of themselves when that passage was written.