Flu, cold, and SARS-nCov2, affect your smell, which is a large part of what people call "taste", but not all of it.
Your ability to taste the basic tastes: salty, bitter, sour, and sweet is unaffected because it is managed by your tongue, not your nose.