The American College of Obstetricians and Gynecologists recommends you get a bivalent booster dose if you are pregnant or if you have recently given birth and you completed your primary vaccine series at least two months ago. You can get a booster dose at any time during pregnancy. If you were originally vaccinated before pregnancy and you are now pregnant, you should still get a booster.
You do not need to choose the same vaccine that you originally received.
https://www.acog.org/womens-health/faqs/coronavirus-covid-19-pregnancy-and-breastfeeding (The American College of Obstetricians and Gynecologists)
https://www.massgeneral.org/obgyn/news/covid-19-boosters-pregnant-patients (Massachusetts General Obstetrics & Gynecology)