Help me please!

Hey!! I am trying to connect with God again and be a good christian, my bf is catholic and he believes in God too.

I wanted to save my virginity for when I get married, but me and my boyfriend did it before ( he didn't forced me), and we have been having sex regularly, but I really want to start a relationship with God and I also want to do things right with my bf because I see a future with him, and I don't know if having sex with him is a bad thing! I am really confused and idk if I'm stupid for thinking this way but I want to do things right with God and my boyfriend! Please help me!