Regeneration of etching compositions