And we know that in all things God works for the good of those who love him, who have been called according to his purpose." (Romans 8:28)
"In all things" doesn’t just mean the things that are inside of the will of God. It also means things that are not inside of the will of God are working to serve His purpose. Whatever you've done, whatever you didn't do that you wish you had done, whatever you didn't know that you wish you had known, the moment that you turn to God and seek His heart to know His ways, you're in the center of His will.
He will take the bad and the good, and make them work together for His glory from this day forward.