What kind of bolt is this? (securing the garage door opener rail to the wall face)
It is a concrete sleeve anchor, many brands with similar names. You drill a hole, then pound it in, then twist the nut a few times to set it. If it has wiggles out then the hole is probably damaged and now oversized.

You might find it best to now set a replacement deeper wedge anchor, or maybe set with a bit of epoxy.

I don't remember what brand I was using, but somewhere instructions said to space at least 5x the diameter apart.