Intel has long since lost the train of miniaturization of transistors, largely due to problems in the transition from 14nm to 10nm, which of course has given AMD the opportunity to return to the top of the market. However, unlike Intel, AMD does not have its own production lines, having sold them many moons ago, giving rise to what is now Global Foundries.
That said, when GloFo also failed to keep up with market trends, AMD turned to TSMC, one of the largest and best semi-conductor manufacturers on the planet. What you don't know, gave rise to the excellent Ryzen 3000 based on 7nm Zen 2 architecture.
Well, 7nm is already part of the past, since TSMC already has 5nm lines ready to produce! Incidentally, Apple already has the vast majority of the capabilities of these lines contracted for iPhone 12 SoCs. However, if you think things are over here … You are very wrong.
3nm from TSMC: Can you imagine a Pentium 4 the size of a pin?