The term "5 nanometer" has no relation to any actual physical feature (such as gate length, metal pitch or gate pitch) of the transistors. It is a commercial or marketing term used by the chip fabrication industry to refer to a new, improved generation of silicon semiconductor chips in terms of increased transistor density, increased speed and reduced power consumption.
https://en.wikipedia.org/wiki/5_nm_processIt is an industry standard term for describing a process node which is quite different from marketing bullshit.