Senator
Thinks s/he gets paid by the post
The issue is not the filament, for certain. The contact in the socket is not solid enough ( I think). There are two bulbs, and it has happened to both.
Very seldom do sockets go bad. The odds of two going bad on the same opener are astronomical. I am not an electrician, but I have worked with 100s or maybe even 1000s of fixtures. Maybe if the opener is 20+ years old?
Bending the tab out should work. Garage door opener light bulbs go bad at a high rate due to vibration. I always use appliance, ceiling fan, or garage door opener bulbs. CFLs are not the bulb to use. Maybe LED? But I would use incandescent.
If the bulb only works for a few hours before going bad again, and is still tight, try a new bulb. Or bulb type. Typically, if it had bad conductivity, it should still flicker. Test for proper voltage at the socket.
The contact inside the opener should have plenty of flex and should not flatten so far as to avoid contact. You can try and put a bit of ink on the bulb, screw it in, and see if you have an ink mark on the contact. Or a piece of tape.
You can put some dielectric grease on the contacts to improve conductivity after it has been cleaned.