Just wanted to add, if the person does a sin but repents it but does the same sin again without the intention but repents again and keeps on sinning and repenting will he/she be forgiven for the past sins as it’s basically becoming a habit of the person of sinning and repenting. Jazakallah.
The Holy Prophet (sa) said, "Actions are judged by intentions". His repentance should be sincere. If it is sincere, Allah will help him, Insha Allah. And he will come out of his evil ways and progress spiritually. If he is not progressing at all, he should be worried and try harder and pray to Allah fervently to help him come out of this cycle.
He can do other things like fasting voluntarily, giving more Sadqah, doing more good works... so that he can get out of this cycle.
+4 answers in: “I've sinned so many times. But I'm also trying to get rid of my weaknesses. How can I be sure that Allah will listen to my prayers? It's like a an endless circle of sinning and repenting. How can I break the vicious circle and make Allah and my soul happy?”
He can do other things like fasting voluntarily, giving more Sadqah, doing more good works... so that he can get out of this cycle.