The results from this Canadian healthcare worker study may be confusing, because it suggests lower long Covid risks with reinfections.
The per infection risk in this study was lower for reinfections, but those with more infections had more long Covid.
Other risk factors for long Covid were infections with pre-Omicron variants and more severe acute infections.
https://www.sciencedirect.com/science/article/pii/S120197122500236X