Well, the 10400f is still a pretty good gaming CPU.
Intel make some really good chips since your 10400f. If you were to go with a B660 DD4 board, and a 12400/f, that gives you a nice bump in performance. About 15-30% depending on the task.
You could go AMD on the DDR 4 side, with a B550 and 5700x/5800x 3d. The 5800x 3d is a stellar CPU for gaming. It even ranks up there with Intel 12th/13th Gen which stole the performance crown back from AMD. The 5800x3d is phenomenal. Purely designed for gaming. The newest AMD 7xxx series are bit expensive, because it's only DDR5. But still great gaming chips.
There's lots of choice.
If I were you, I would go with MSI MAG b660 DDR gaming, and a 12th Gen 12400f, or 12600k, and be happy out. Use your existing components, and get a good PSU, and you are good to go, with a little upgrade option for CPU down the line.