Check whether the garment is machine washable. A mesh bag cannot make a hand wash only garment suitable for the machine.
Fold the sweater loosely and compare its dimensions with the bag. Leave room for movement rather than compressing it into a tight bundle.
At the store ask whether the zipper has a cover to keep it from catching on the next garment.