I think adding that amount of salt to a planted tank is a risk I wouldn't take. Epsom salt differs from Aquarium salt in that it is high in magnesium which is not a problem in small amounts.
If you can, I would treat the fish in a quarantine / hospital tank.
If you can, I would treat the fish in a quarantine / hospital tank.