if you replaced “antifungals” with “antibiotics” then you’ll see that it should be “which class of antifungals (antibioticS not antibiotic) treats…”
Scroll down to “Issue 2.” It’s a confusing piece of grammar, but it’s correct. Plural: Explanation and Examples