I recommend the following:
1- Try to figure out why you lost interest in religion. Are you upset with God over something that happened? Did you commit a sin and did not really feel guilty about it? Do you have doubts about some religious teachings? Identifying the cause is always very helpful.
2- At night, do sujud for 2 minutes and take a deep break and say Sobhana rabbial a’la wa behamdeh.
And before you sleep, say La ilaha illa Allah 100 times—slowly and with a deep breath. These two are really helpful.
3- At night, stand on your feet and read the Qur’an for 2 minutes. Read one verse, then reflect on it.
4- If you don’t feel loved by Allah, I recommend seeing this:
https://youtu.be/Vz2Ot0qwKiw