The slowdown of x86 processor progress was caused by the very slow adoption by Intel of new fab processes. 14nm CPUs came out in 2014, 10nm mobile only (Tiger Lake) came out in the end of 2020. Almost three years later still no commercial CPUs by Intel on 7nm. They used to be a lot faster, 22nm CPUs (Ivy Bridge) came out in 2012 - so around 2 years to go from 22 to 14.
The reason we see increasing core counts is that 2 cores consume roughly 2x the power of 1 core (well, slightly more). Doubling clock speed from 5 GHz to 10 GHz would cost way more than 2x the power. Furthermore, pumping that much heat out of a sub-100mm^2 die gets harder and harder. You can have more transistors in a small space, but you simply can't have them change state much more than the previous generation did.