See How to extract and use physical labels from GMSH surfaces on FEniCS (2D mesh) - #5 by dokken and How to define different materials / importet 3D geometry (gmsh) - #2 by dokken