An erratum is presented to correct the laser pulse energy applied on the fiber during grating fabrication in Opt. Lett.47(2), 249 (2022)10.1364/OL.450047.