We were never released from the Law - Peter always followed the law as did Jesus. Peter confirms this to Paul
Acts 21:21-24 21 They have been informed that you teach all the Jews who live among the Gentiles to turn away from Moses, telling them not to circumcise their children or live according to our customs. 22 What shall we do? They will certainly hear that you have come, 23 so do what we tell you. There are four men with us who have made a vow. 24 Take these men, join in their purification rites and pay their expenses, so that they can have their heads shaved. Then everyone will know there is no truth in these reports about you, but that you yourself are living in obedience to the law.
“It is easier for Heaven and Earth to pass away than for the smallest part of the letter of the law to become invalid.” (Luke 16:17)
“Did not Moses give you the law, and yet none of you keepeth the law” (John7:19)
Revelation 2:14-16 - 14 Nevertheless, I have a few things against you: There are some among you who hold to the teaching of Balaam, who taught Balak to entice the Israelites to sin so that they ate food sacrificed to idols and committed sexual immorality. 15 Likewise, you also have those who hold to the teaching of the Nicolaitans. 16 Repent therefore! Otherwise, I will soon come to you and will fight against them with the sword of my mouth.
James 2:20-24 - 20 You foolish person, do you want evidence that faith without deeds is useless? 21 Was not our father Abraham considered righteous for what he did when he offered his son Isaac on the altar? 22 You see that his faith and his actions were working together, and his faith was made complete by what he did. 23 And the scripture was fulfilled that says, “Abraham believed God, and it was credited to him as righteousness,” and he was called God’s friend. 24 You see that a person is considered righteous by what they do and not by faith alone.
Matthew 5:17-20
17 Think not that I am come to destroy the law, or the prophets: I am not come to destroy, but to fulfil.
18 For verily I say unto you, Till heaven and earth pass, one jot or one tittle shall in no wise pass from the law, till all be fulfilled.
19 Whosoever therefore shall break one of these least commandments, and shall teach men so, he shall be called the least in the kingdom of heaven: but whosoever shall do and teach them, the same shall be called great in the kingdom of heaven.
20 For I say unto you, That except your righteousness shall exceed the righteousness of the scribes and Pharisees, ye shall in no case enter into the kingdom of heaven.
“It is easier for Heaven and Earth to pass away than for the smallest part of the letter of the law to become invalid.” (Luke 16:17)
“Did not Moses give you the law, and yet none of you keepeth the law” (John7:19)