Jesus set a sinless example of how to walk in obedience to the Mosaic Law, so he would have taught full obedience to it by example even if he had said nothing, and as his followers we are told to follow his example (1 Peter 2:21-22). Furthermore, Jesus also taught obedience to mire than just the Ten commandments, such as with the greatest two commandments, or when he instructed those those he had cleansed to present themselves to the priest (Luke 17:14). In addition, practically everything he taught was so firmly rooted in the OT that we should be taking key words from his parables and plugging them into a search engine to try to determine what he was referencing, such as when Jesus spoke about wine, spoke about a bride groom, or when he talked about different types of soils in the parable of the soils. Or when Jesus was sleeping on a boat during a storm while heading towards Gentiles, we should look up who else in the OT was sleeping on a boat during a storm when he should have been heading towards Gentiles. In short, there has never been someone who has more thoroughly referenced OT Scripture than Jesus.
God's way or ways are described as being righteous, blameless, merciful, pure, humble, light, perfect, true, liberty, and gentleness (
2 Samuel 22:21-37), delightful (
Psalms 37:23), and everlasting (
Habakkuk 3:6), merciful, gracious, slow to anger, abounding in steadfast love and faithfulness, forgiving, just (
Exodus 34:6-7), love, joy, peace, patience, kindness, goodness, faithfulness, gentleness, and self-control (
Galatians 5:22-23). So God's ways are how He expresses aspects of His nature and there are many verses that describe the Mosaic Law as being instructions for how to walk in God's ways, such as Deuteronomy 10:12-13, Isaiah 2:2-3, Joshua 22:5, Psalms 103:7, and many others. So "The Way" is God's nature and those who walk in it are dedicated to testifying about God's nature through our obedience to His law in accordance with how Jesus expressed God's nature through the leading of the Spirit.
In Deuteronomy 30:15-16, obedience to the law brings life and a blessing. In Deuteronomy 32:47, the law is our very life. In Proverbs 3:18, she is a tree of life for all who take hold of her. In Leviticus 18:5, Galatians 3:12, and Romans 10:5, the one who obeys the law will attain life by it. In Matthew 19:17, Jesus said that if we want to enter into eternal life, then obey the commandments. So if one is fully accurate in law, then they will have life, but one will have no life if they inaccurately miss the goal of obeying the law.
Yes, she obeyed the law to love her neighbor. She was following God's inner voice, but what she was doing was not something other than loving her neighbor. I agree that we should listen to the Spirit and the Spirit has the role of leading us to obey God's law (Ezekiel 36:26-27). All of the laws that God has given are examples of what it looks like to love God and our neighbor, which is why Jesus said in Matthew 22:36-40 that those are the greatest two commandments and that all of the other commandments hang on them, so they are all connected, but if someone tries to obey the law apart from the love of Jesus, then they are missing the whole goal of the law. In Romans 10:4, it is speaking about a relationship with Jesus being the goal of the law for righteousness for everyone who has faith. In Matthew 7:23, Jesus said that he would tell those who are worker of lawlessness to depart from him because he never knew them, so God's law is His instructions for how to know Christ, or in other words, how to have a relationship with him. In 1 John 2:4, those who say that they know Christ, but don't obey His commandments are liars and the truth is not in them, and in 1 John 3:4-6, sin is the transgression of God's law and those who continue to practice sin have neither seen nor known him. In order to love who Christ is, we need to recognize who he is, namely that he is the exact expression of God's nature (Hebrews 1:3), so when we testify about God's nature through our obedience to His law, we are expressing our love for who Christ is, which is why there are many verses in both the OT and the NT that associate our love for God with our obedience to His commandments.
In John 5:39-40, Jesus said that they search the Scriptures because they think that in them they will have eternal life, and they testify about him, yet they refuse to come to him that they might have life. In Matthew 19:17, Jesus said that if we want to have eternal life, the obey the commandments, so eternal life can be found in Scriptures and the Pharisees were correct to search for it there, but they needed to recognize that the goal of everything in Scriptures is to testify about how to have a relationship with Christ and that they needed to enter into a relationship with him for eternal life. In Philippians 3:8, Paul was in the same boat as the Pharisees, where he had been keeping the law, but without having a focus on knowing Christ, so he had been missing the whole goal of the law and counted it all as rubbish. This was also what the rich young ruler needed to do.
Likewise, he was not doing something other than loving his neighbor.