Vaccines have to be thoroughly tested for safety before they're made routinely available.
Each vaccine's safety is continually monitored, even after it's been introduced. This is because not all side effects are picked up during the vaccine's development, especially if they're very rare. All vaccines in general use are continually and carefully monitored, so that any side effects are identified.