FLASH radiotherapy is an emerging radiotherapy technique used to spare normal tissues. It employs ultra-high dose rate radiation beams over 40 Gy/s, which is significantly higher than those of conventional radiotherapy. In this study, a fiber-optic radiation sensor (FORS) was fabricated using a plastic scintillator, an optical filter, and a plastic optical fiber to measure the ultra-high dose rate electron beams over 40 Gy/s used in FLASH radiotherapy. The radiation-induced emissions, such as Cherenkov radiation and fluorescence generated in a transmitting optical fiber, were spectrally discriminated from the light outputs of the FORS. To evaluate the linearity and dose rate dependence of the FORS, the outputs of the fiber-optic radiation sensor were measured according to distances from an electron scattering device, and the results were compared with those of an ionization chamber and radiochromic films. Finally, the percentage depth doses were obtained using the FORS as a function of depth in a water phantom. This study found that ultra-high dose rate electron beams over 40 Gy/s could be measured in real time using a FORS.