The coexistence of the polar instability and metallic conduction has attracted much attention. Ferroelectric soft optic modes and carrier electrons were investigated in A- and B-site heterovalent doped strontium titanate SrTiO3 crystals by the terahertz time-domain spectroscopic ellipsometry. The observed real and imaginary parts of a complex dielectric constant were fitted by the damped harmonic oscillator model for the ferroelectric soft optic mode and the Drude-Smith model for carrier electrons. The observed soft mode frequency increases as the La and Nb content increases. It is found that the square of the ferroelectric soft mode frequency linearly changes to the carrier electron concentration. This fact indicates that the carrier electrons suppress the ferroelectric instability and the ferroelectric soft mode frequency increases as the carrier concentration increases.