To restore an existing product attribute navigate to Products > Settings > Attributes to see the lists of both active and archived attributes. The screen will contain two sections, one for active attributes and one for archived attributes. Find the attribute you wish to restore in the archived section and select the Restore button on the right.

Once restored, you will see that the attribute has moved from the Archived to Active section.