I interpret love and hate covenantally. A person you love is a person with whom you have a covenant/treaty, and being faithful to that covenant is being loving. Excluding someone from covenant and/or not keeping the commitments of the covenant are hatred. God's commandments are the terms of his covenant.
God is a jealous deity and his covenant requires that his people make no deals with any other deity. If they bow down to idols, God will ensure consequences for the family for over 100 years.
In addition, those in covenant with the LORD must love their neighbor as they love themselves:
[Lev 19:18 NASB20] (18) 'You shall not take vengeance, nor hold any grudge against the sons of your people, but you shall love your neighbor as yourself; I am the LORD.
The question then became, does that mean that we are only required to covenantally embrace those who are also in covenant with the LORD? Or all other people as well? Who, exactly, is my "neighbor"? Jesus has an encounter with a rich young ruler designed to answer that question:
[Luk 10:25-37 NASB95] (25) And a lawyer stood up and put Him to the test, saying, "Teacher, what shall I do to inherit eternal life?" (26) And He said to him, "What is written in the Law? How does it read to you?" (27) And he answered, "YOU SHALL LOVE THE LORD YOUR GOD WITH ALL YOUR HEART, AND WITH ALL YOUR SOUL, AND WITH ALL YOUR STRENGTH, AND WITH ALL YOUR MIND; AND YOUR NEIGHBOR AS YOURSELF." (28) And He said to him, "You have answered correctly; DO THIS AND YOU WILL LIVE." (29) But wishing to justify himself, he said to Jesus, "And who is my neighbor?" (30) Jesus replied and said, "A man was going down from Jerusalem to Jericho, and fell among robbers, and they stripped him and beat him, and went away leaving him half dead. (31) "And by chance a priest was going down on that road, and when he saw him, he passed by on the other side. (32) "Likewise a Levite also, when he came to the place and saw him, passed by on the other side. (33) "But a Samaritan, who was on a journey, came upon him; and when he saw him, he felt compassion, (34) and came to him and bandaged up his wounds, pouring oil and wine on [them;] and he put him on his own beast, and brought him to an inn and took care of him. (35) "On the next day he took out two denarii and gave them to the innkeeper and said, 'Take care of him; and whatever more you spend, when I return I will repay you.' (36) "Which of these three do you think proved to be a neighbor to the man who fell into the robbers' [hands?]" (37) And he said, "The one who showed mercy toward him." Then Jesus said to him, "Go and do the same."
For an overview of the situation in the first century, please see my answer to a related question, here. However, because Judeans began to refer not only to the ethnic Samaritans but to all of the people of the northern regions of Israel as "Samaritans," I'm not sure we can conclude with certainty to which group the "Good Samaritan" belonged. The Samaritans proper were a community of people that were not ethnically Jews and had a very different flavor of Judaism, embracing only the scrolls of Moses. These were dismissed as non-Jews by the Judeans. The more casually used term "Samaritans" referred to all of the covenantally lost northern tribes.
So, the good Samaritan was either one of the ethnically non-Jewish but Torah observant community with whom the Judeans had no dealings, or, the ethnically Jewish but covenantally dead lost sheep of Israel, scattered as a "diaspora," also despised by the Judeans.
Either way we understand Jesus' use of that term, by acting covenantally Jesus says that they were covenantally loved and loving:
[Mat 12:46-50 NASB95] (46) While He was still speaking to the crowds, behold, His mother and brothers were standing outside, seeking to speak to Him. (47) Someone said to Him, "Behold, Your mother and Your brothers are standing outside seeking to speak to You." (48) But Jesus answered the one who was telling Him and said, "Who is My mother and who are My brothers?" (49) And stretching out His hand toward His disciples, He said, "Behold My mother and My brothers! (50) "For whoever does the will of My Father who is in heaven, he is My brother and sister and mother."
Those who, despite being a priest/Levite failed to show compassion to the hurting man, did not receive the identification as "neighbor" in the covenantal sense.