This is why the pins that support the filament are typically made of molybdenum. Molybdenum has a relatively low thermal expansion coefficient in comparison with most metals, so there are certain glass compositions that can match its TCE. The glass through which the pins pass is not of the same type as the bulb, which is made of cheaper glass, but it is of the type matched in TCE with molybdenum.
See this random example of a GE bulb (which I selected just because it includes the first picture I could find of a modern bulb made with clear glass): https://www.toolboxsupply.com/products/ge-lighting-62616-ene...
Except for all the ones that aren't modern or efficient. Common 40-Watt appliance bulbs, for instance: Those are still built using the old methods. They never changed. This strongly suggests that we never forgot how to seal metal wires into a glass bottle full of nothing.
But this article isn't about industrial processes. It's about rediscovering things at home, and that stands on its own merits. :)