Pulsations in B-type supergiants with masses $\boldsymbol {M<20}\,\mathbf {M}_{\odot }$ before and after core helium ignition