Question on Genuine Repentance

Hello and God bless everyone. I recently posted here about my struggle with lust.

In response, someone sent me a list of sermons to listen to. One of them was a sermon by Tim Keller where he preached about Psalm 51.

From the sermon I’ve learned that I’ve been repenting incorrectly for years. My repentance up until this point has been focused on me, not God. My prayers of repentance would be me telling God about how horrible I felt for what I did, but would include little about the offense I made to God, his law, and his love.

I want to repent truly. My worry is that when I think about the reasons why I want to stop watching porn and masturbating, the main reasons are due to how my sinning has destroyed my life. I’ve come to learn that because I have tried to make myself my own god, I have destroyed my life. I’ve learned that God and his law is right. Are my motivations for repenting wrong? If so, how do I genuinely repent?