The verse you've referenced (Quran 58:22) is specifically about those who are at actively at war with Islam and the Muslims.
You are not forbidden from showing affection to those who don't fight Islam and the Muslims:
Quran 60:8 Allah does not forbid you to deal justly and kindly
with those who fought not against you on account of religion and did
not drive you out of your homes. Verily, Allah loves those who deal
with equity.
On the contrary you are commanded to show affection to them, but not at the cost of your iman:
Quran 29:8 And We have enjoined upon man goodness to parents. But
if they endeavor to make you associate with Me that of which you have
no knowledge, do not obey them. To Me is your return, and I will
inform you about what you used to do.
Quran 17:23-24 And your Lord has decreed that you not worship
except Him, and to parents, good treatment. Whether one or both of
them reach old age [while] with you, say not to them [so much as],
"uff," and do not repel them but speak to them a noble word. And lower
to them the wing of humility out of mercy and say, "My Lord, have
mercy upon them as they brought me up [when I was] small."
Quran 31:14 And We have enjoined upon man [care] for his parents.
His mother carried him, [increasing her] in weakness upon weakness,
and his weaning is in two years. Be grateful to Me and to your
parents; to Me is the [final] destination.
And in Hadith:
Narrated Asma' bint Abu Bakr (ra):
My mother came to me during the lifetime of Allah's Messenger (ﷺ) and
she was a Mushrikah (polytheist, idolatress, pagan).
I said to Allah's Messenger (ﷺ) (seeking his verdict), "My mother has
come to and she desires to recieve a reward from me, shall I keep good
relations with her ?"
The Prophet (ﷺ) said, "Yes, keep good relation with her."
Ibn 'Uyaina said, "Then Allah revealed: 'Allah forbids you not with
regards to those who fought not against you because of religion, and
drove you not out from your homes, that you should show them kindness
and deal justly with them.'.......(60.8)
Sahih Bukhari, Book of gifts and Book of Manners
For your future study, the commands of the Quran about treatment of non-Muslims fit into the following categories:
- Those who are Harbis (at war)
- Those who are Dhimmis (subjects of the state)
- Those who are at Aman (have peace treaties or safe conduct)