I considered that long ago. In order to understand Paul's letter to the Romans, first we must understand that Paul wrote it from the mind of one who thinks as a lawyer.
Paul mentions at least 8 different kinds of law in that letter.
The Law of Faith (Ch 3)
A Different Law (Ch 7)
The Law of My Mind (Ch 7)
The Law of Sin (Sin's Law) (Ch 7)
God's Law (Ch 7)
The Spirit's Law of Life (Ch 8)
The Law of Sin and Death (Ch 8)
The Law of Righteousness (Ch 9)
Now the Law if Righteousness is no more God's Law, than The Law of Sin and Death or The Law of Paul's Mind.
We need to read Paul's letters in context. Paul continued to stage the context earlier in this letter when he said:
(CLV) Ro 2:13
For not the listeners to law are just with God, but the doers of law shall be justified.
You see that Paul says that those who obey the law will be justified. Which law do your suppose he speaks of, His word that is forever stationed in heaven, or the Law of Sin and Death?
(CLV) Ro 3:31
Are we, then, nullifying law through faith? May it not be coming to that! Nay, we are sustaining law.
Yahshua said that YHWH's Torah is forever. Paul agrees, not that Paul was crucified for me, nor was I baptized in the name of Paul.
(CLV) Ro 7:25
I thank God, through Jesus Christ, our Lord. Consequently, then, I myself, with the mind, indeed, am slaving for God's law, yet with the flesh for Sin's law.
Notice that Paul declares himself a slave to God's Law, not the law of righteousness. We must not conflate the two.
If you would like to consider Paul's letter to the Romans outside of the dogma of men; but rather in harmony with the words of our Messiah, the words of our Heavenly Father; I have presented a study here:
Paul on the Law: Romans Chapter 1
Paul on the Law: Romans Chapter 2
Paul on the Law: Romans Chapter 3
Paul on the Law: Romans Chapter 4
Paul on the Law: Romans Chapter 5
Paul on the Law: Romans Chapter 6
Paul on the Law: Romans Chapter 7
Paul on the Law: Romans Chapter 8
Paul on the Law: Romans Chapter 9
Paul on the Law: Romans Chapter 10
Paul on the Law: Romans Chapter 11
Paul on the Law: Romans Chapter 12
Paul on the Law: Romans Chapter 13
Paul on the Law: Romans Chapter 14
Paul on the Law: Romans Chapter 15
Paul on the Law: Romans Chapter 16
Remember Paul said that the dogma was nailed to the pale.
(CLV) Col 2:14
erasing the handwriting of the decrees (δογμασιν dogmasin dogmas)against us, which was hostile to us, and has taken it away out of the midst, nailing it to the cross (σταυρω staurO pale),