You are extremely lucky.
If that loose connection was in the tank as you described, One spark in Vapor and you would not be here....
Most folks use Tanks.inc.com and they use Walbro pumps.
https://www.tanksinc.com/index.cfm/p...rod/prd609.htm
Ideally any electrical (load) connections should be made outside the tank.
Personally, I would seal any cannon plug front and back-shell and wiring connections with Pro-seal AMS-8802 fuel cell sealant.
SEALANTS PRODUCTS BY PPG FOR THE AEROSPACE INDUSTRY - PPG Industries - Aerospace
Chemseal is cheaper to purchase than PPG sealant.
https://www.aircraftspruce.com/catal...IaAjCbEALw_wcB