so the lines on the fog lamp bulbs are stuck to the car and the fog lamp lenses are stuck to the bumper?
which means when you remove the bumper the fog lamp bulbs are stuck to the electric lines and hanging?

Yes to both questions. However there is enough cable to allow you to unscrew
the fogs from them bumper should you wish to do so without removing the bulb
from them.