What is the right way to run ethernet wiring and electrical wiring in a house?
If your only question is in regards to pulling CATx cables near Romex/NM cable, then you need not worry as long as you cross your electrical cables at right angles. This will minimize the chance of any noise being introduced.

You should not pull Ethernet cables right next to and parallel to your electrical cables.