How do I replace these metal pieces from my instrument panel?

There used to be an excellent old thread on this board "how' to do this, but photophpukpukpukpilbucket puked up the internet. I "fixed" mine by eliminating the factory connector, cut it off and used a pair of Molex style connectors, and soldered wire pigtails to the circuit board.

This thread

Printed circuit pins repair

See if this helps this is out of the old software and you must click on the black icons to bring up the photos

Instrument cluster testing