I7-7700K is a very good idea, I think.
They seem to be discounted now that 8th gen processors are out.
The single thread core performance is usually what matters most for games.
That is particularly true at lower resolutions where the limitation of the graphics card is lessened.
Your I5-6600 runs stock at 3.5 with a turbo on a single core up tp 3.9 when conditions are right.
Replacing with a I7-7700K will run at 4.2 with a turbo up to 4.5.
The extra threads will not likely be all that useful. Few games can usefully use more than 2-3 threads.
Ryzen will top out an overclock around 4.0 with per clock performance a tad slower than Intel.
Moreover, it is unlikely that you can use all of the 12 or 16 threads that it provides for games.
First, though, look at the cpu support list for your particular B150 motherboard.
Likely, you will need a current bios update to run 7th gen processors.
If you were to replace the B150 motherboard with a Z270 based motherboard. then you could overclock the I7-7700K.
80% of 7700k processors will OC to 4.9.
That would cost you perhaps an additional $150.
If you were amenable to a motherboard change, I suggest going to 8th gen and a I3-8350K.
A Z370 motherboard will cost the same $150, but the 4 core I3-8350K will cost less, perhaps $190.
A 6 core I5-8600K will be about $300.
Each is likely to OC to 4.8 or better.
You might want to try an experiment and see what happens if you reduce your 4 threads to 3.
You can do this in the windows msconfig boot advanced options option.
You will need to reboot for the change to take effect. Set the number of processors to less than you have.
This will tell you how sensitive your games are to the benefits of many threads.
If you see little difference, it tells you that you will not benefit from more cores.
Likely, a better clock rate will be more important.