Rashi on Isaiah
As a pregnant woman comes near to give birth, etc. So were we because of You; we see troubles being renewed, and we think that they are sorts of indications of salvation and redemption, for we are promised to be redeemed out of straits, as a woman giving birth.
Ibn Ezra on Isaiah
Like as a woman, etc. This verse describes the chastening mentioned in the preceding verse.