Interacting supernovae from photoionization-confined shells around red supergiant stars