Ephesians 4:22-23
That, regarding your previous way of life, you put off your old self (completely discard your former nature), which is being corrupted through deceitful desires, and be continually renewed in the spirit and your mind (have a fresh, untarnished mental and spiritual attitude.)
Sometimes it feels like we have ups and downs in our relationship with God. When our old self will come out of nowhere, and we regret our actions. However, with God, we can be made new at any moment. We are all a work in progress and growth in learning with God. Don’t give up and keep going and seeking the word for the answers.