Buy a good thread file & a new nut. Work slowly/carefully trying the nut often.
When I remove the nut to change sprockets, I don't try to dig the staked dents out of the sprocket, just turn it off & let the output shaft straighten the staked part of the nut.