Baby daddy possibly going to prison..

Please no judging just need some supoort and advice. So I recently found out I'm pregnant. I'm 19 almost 20. I do live at home but I go to college full time and have a full time job. I recently got back together with one of my exs from when I was a sophomore in high school. Everything was going good until about a week or so before I found out I was pregnant and he went to jail and then court. I had no idea he had been in any trouble. He was too embarrassed to tell me. But he got out and told me he has a court date for June and possible prison for 7 years. My baby isn't due until September. I'm worried he may go and I will have to do this alone. Yes, I do love him just honestly scared of what to do and how I'm suppose to keep things together. He wants to step up as a father but that doesn't mean he still won't go to jail.. just need encouragement, advice, similar stories, anything. Please don't bash him he's good to me just can't make good choices