Immunity acquired through vaccination or natural infection helps prevent severe illness, which is likely to reduce the risk of damage to areas of the brain responsible for smell and taste [1][2].
AFAIK, there is currently no scientific evidence supporting the idea that mRNA vaccines uniquely "treat or cure long COVID" through other mechanisms.
[1] Brain imaging before and after COVID-19 in UK Biobank https://www.medrxiv.org/content/10.1101/2021.06.11.21258690v...
[2] Brain Imaging Use and Findings in COVID-19: A Single Academic Center Experience in the Epicenter of Disease in the United States http://www.ajnr.org/content/ajnr/41/7/1179.full.pdf