Righteousness does not need to be perfect to exceed the righteousness of the Pharisees. It needs to include a degree of faith sufficient to have one's sins forgiven. When that happens there is no unrighteousness left to mar the saint's ledger. The Pharisees refused to exercise such faith. A ledger with no debits for unbelief and some credits for faith, is more righteous than a ledger with many debits for unbelief and a few credits for occasional faith.
Rom 3:19 Now we know that whatsoever things the law is saying, it is saying to those in the law: so that every mouth may be start to be silenced, and all the world may start to become guilty before God.
Rom 3:20 Therefore out of legal efforts no flesh shall be justified before Him: for through law
is knowledge of missing the target.
Rom 3:21 But now a divine righteousness without law has been manifested (was and is continuing to be manifest), while being testified to by the law and the prophets;
Rom 3:22 Even a divine righteousness through a faith characteristic of Jesus Christ for all and onto all those believing: for there is no difference:
Rom 3:23 For all missed the target and are falling short of the glory of God.
Rom 3:24 Being justified freely for his grace through the redemption in Christ Jesus:
Rom 3:25 Whom God set forth
to be a propitiation through faith in his blood, for the declaration of his righteousness through the remission of missed targets that have happened, in the forbearance of God;
Rom 3:26 Toward a declaration,
I say, in this present time of his righteousness: for him to be just, and
to be justifying him who is
being justified out of faith characteristic of Jesus.
3:21 In the phrase dikaiosunE theou, lit. a righteousness of a god, the indefinite theou can be understood either as referring to a god's righteousness, or adjectivally as a divine righteousness. Divine righteousness was manifested in and through the life, death and resurrection of Jesus Christ, without Jesus aiming to keep the law. But the law and the prophets testified to the life of Jesus being divinely righteous.
3:22 That divine righteousness that does not rely on legal efforts continues to be manifested by Christ for all mankind, and onto all those who are believing through a faith that is like Jesus' faith, that is characteristic of Jesus' faith. Jesus faith was and is a faith in God's character, a faith in God's willingness to forgive sinners who come to him for mercy, not a faith in a God who is only willing to accept those who perform perfectly. Those who have a similar faith to Jesus' faith will be justified by the God who is willing to forgive sinners who come to Him for mercy.
3:23-25 confirm this.
3:26 It is on account of the believer having a faith characteristic of Jesus, a faith that is like Jesus' faith, that the just God is justifying the ones believing.
There is no indication in the Greek, that the faith that the believer is exercising is the faith itself that Jesus Himself is exercising. It is a faith that is characteristic of Jesus. It is like Jesus' faith, having the same attributes as Jesus faith.