Chains are cheap compared to the more expensive freewheel or cassette cogs. Replace your chain! Hopefully the cogs are not worn so much that they need replacing as well. When you replace the chain often your cassette will last a few years at least.
Cheers