Can't put screw back in toggle switch
It was supposed to be captive. The safest thing is to replace the switch. They are typically $ 1 - $ 3, depending on quality and where you buy them.
If the new switch has &quot;back stab&quot; connections, as it appears your existing switch has, don't use them. Use the screws.