If you use cork use the impregnated cork material. Did one like that, Sealed to sending unit with Permatex aircraft sealer with nothing to the tank.so I can pull it on and off tank when needed. Works well.
You could use HighTack to the tank, it would be removable.
Pure cork will leak.
Don’t use silicone gasket maker, it’s not appropriate for Gas.