Agree 100%.
Reacting to the pregnancy makes it seem as if pregnancy and childbirth are wrong. They are not. Sex outside marriage is wrong.
Unfortunately, fornication isn’t visibly obvious, so it’s natural to react to the consequence. However, the Church needs to strongly reiterate the point that it is not this woman’s (or any woman’s) pregnancy that is a sin. It is any man’s or woman’s having sex outside marriage.
(I know you know this, of course.)