Repair of valve cover tabs

whats the best way to repair the engine wire looms/tabs on our Mopar valve covers. Mine are not broken off yet bet hanging my a thread.

Thanks for any advice to repair or restore them.