Previous COVID infection enhances immunity, creating what we call hybrid immunity. This happens because current vaccines mainly target the spike protein, while natural infection exposes the immune system to other parts of the virus.
New vaccines in development aim to include multiple proteins and improved delivery methods, which could lead to longer-lasting immunity. For now, hybrid immunity (infection plus vaccination) offers broader protection, while vaccines safely boost antibody levels without the risks of infection.