For the law of the Spirit of life in Messiah Yeshua has set you free from the law of sin and death.
Romans 8:2 TLV

Following the metaphor that Paul established at the end of the last chapter, he introduces another law, The Law of the Spirit of Life, which is just another way to refer to the law that is at work in his mind. The law of the spirit of life isn’t a legal code, but a determination to direct one’s steps according to God’s Law and faithfulness to Yeshua.

There are 4 kinds of laws Paul talks about: 1) Legal codes and their judgments, 2) teaching and tradition, 3) the natural consequences of a circumstance or choice, and 4) a defining characteristic of something. Likewise, there are 4 kinds of spirits: 1) the Holy Spirit, 2) other non-human spirits (whether fallen or not), 3) the spirit of a person, and 4) behavioral/spiritual inclinations, like the sinful nature.