Afraid of pregnancy

I’m honestly terrified of having kids. I used to love the idea of having kids and want nothing more, but recently I’ve been getting severe anxiety thinking about having children and all that comes with it. I’ve been with my boyfriend for 3 years we are in our 20s and he wants kids and I did, but now I don’t and I just don’t know why I feel this way and how to attack the situation.