Jesus came to teach what came before not to invent a new law, he never stated that the old / previous laws should not be followed. Paul invents new laws. There is too much that can be added so I will leave it as brief as possible while making the point.
Teaching of the Law - far from an exhaustive list
Matthew 5:17-19 - 17 Do not think that I have come to abolish the Law or the Prophets; I have not come to abolish them but to fulfill them. 18 For truly, I say to you, until heaven and earth pass away, not an iota, not a dot, will pass from the Law until all is accomplished. 19Therefore whoever relaxes one of the least of these commandments and teaches others to do the same will be called least in the kingdom of heaven, but whoever does them and teaches them will be called great in the kingdom of heaven.
Matthew 28:20 - 20 and teaching them to obey everything I have commanded you. And surely I am with you always, to the very end of the age.”
Genesis 17:10-12 - 10 This is My covenant, which you shall keep, between Me and you and your descendants after you: every male among you shall be circumcised. 11 And you shall be circumcised in the flesh of your foreskin, and it shall be the sign of the covenant between Me and you. 12 And every male among you who is eight days old shall be circumcised throughout your generations, including a slave who is born in the house or who is bought with money from any foreigner, who is not of your descendants.
John 7:19-22 - “Did Moses not give you the Law, and yet none of you carries out the Law? Why are you seeking to kill Me?” 20 The crowd answered, “You have a demon! Who is seeking to kill You?” 21 Jesus answered them, “I did one deed, and you all are astonished. 22 For this reason Moses has given you circumcision (not that it is from Moses, but from the fathers), and even on a Sabbath you circumcise a man.
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.
JAMES 2:26 Just as the body is dead without breath, so also faith is dead without good works
James 2:8-11 - If you really keep the royal law found in Scripture, “Love your neighbour as yourself,” you are doing right. But if you show favouritism, you sin and are convicted by the law as lawbreakers. For whoever keeps the whole law and yet stumbles at just one point is guilty of breaking all of it. For he who said, “You shall not commit adultery,” also said, “You shall not murder.” If you do not commit adultery but do commit murder, you have become a lawbreaker.
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.
Revelation 2:20 - 20 Nevertheless, I have this against you: You tolerate that woman Jezebel, who calls herself a prophet. By her teaching she misleads my servants into sexual immorality and the eating of food sacrificed to idols.
Acts 21: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.
Acts 21:25-26 - 25 As for the Gentile believers, we have written to them our decision that they should abstain from food sacrificed to idols, from blood, from the meat of strangled animals and from sexual immorality.” 26 The next day Paul took the men and purified himself along with them. Then he went to the temple to give notice of the date when the days of purification would end and the offering would be made for each of them.
Luke 16:17 It is easier for heaven and earth to disappear than for the least stroke of a pen to drop out of the Law.
Deuteronomy 13:5 - 5 That prophet or dreamer must be put to death for inciting rebellion against the LORD your God, who brought you out of Egypt and redeemed you from the land of slavery. That prophet or dreamer tried to turn you from the way the LORD your God commanded you to follow. You must purge the evil from among you.
Paul – far from an exhaustive list
Eph 2:8-10 - For it is by grace you have been saved through faith, and this not from yourselves; it is the gift of God, not by works, so that no one can boast. For we are God’s workmanship, created in Christ Jesus to do good works, which God prepared in advance as our way of life
Romans 10:9-12 - 9 If you declare with your mouth, “Jesus is Lord,” and believe in your heart that God raised him from the dead, you will be saved. 10 For it is with your heart that you believe and are justified, and it is with your mouth that you profess your faith and are saved. 11 As Scripture says, “Anyone who believes in him will never be put to shame.”
Romans 3:28 For we maintain that a person is justified by faith apart from the works of the law.
Galatians 3:19 Why, then, was the law given at all? It was added because of transgressions until the Seed to whom the promise referred had come. The law was given through angels and entrusted to a mediator.
2 Corinthians 3:14 But their minds were made dull, for to this day the same veil remains when the old covenant is read. It has not been removed, because only in Christ is it taken away.
Romans 4:5 "To the man who does not work, but trusts God who justifies the wicked, his faith is credited as righteousness".
Gal. 5:4 "You who are trying to be justified by law have been alienated from Christ; you have fallen away from grace".
Romans 7:6 “But now we are released from the Law.. we serve not under the old written code but under the new life of the Spirit”.
Gal. 2:16 - A man is not justified by observing the law, but by faith in Jesus Christ, because by observing the law no one will be justified.
2 Timothy 1:11 And of this gospel I was appointed a herald and an apostle and a teacher.
Yet Jesus says:
only 1 teacher - Matthew 23:8–12 8 But you are not to be called rabbi, for you have one teacher, and you are all brothers. 9 And call no man your father on earth, for you have one Father, who is in heaven. 10 Neither be called instructors, for you have one instructor, the Christ. 11 The greatest among you shall be your servant. 12 Whoever exalts himself will be humbled, and whoever humbles himself will be exalted.
Matthew 23:15 - 15 “Woe to you, teachers of the law and Pharisees, you hypocrites! You travel over land and sea to win a single convert, and when you have succeeded, you make them twice as much a child of hell as you are.
Follow Jesus not Paul