To clarify, you have 2 conductor + ground coming into a 2 gang box feeding the lighting circuit, then have two sets of 3 conductor + ground between the first 2 gang box to 2x separate 1 gang boxes and then have the lighting load coming out of the s 2x separate 1 gang boxes via 2 conductor + ground cable?
If so, tie all your neutrals (white wire) from the incoming 2 conductor cable feeding power to the box, tie in your neutral pigtails from your 3-way switches if they are electronic / require a neutral. Tie all of your grounds together, then pigtail the incoming power conductor (black wire) to supply power to the common screw of the 3-way switches. Use the black and red conductors on your 3 conductor cables for your travelers to each secondary 3-way switch.
At the 2x separate 1 gang boxes, again tie your neutrals together, tie your grounds together, connect your travelers and connect the 2 conductor black wire (LOAD) to the common screw on the 3-way switch for power out.
Code requires that neutrals be present at every switch location so that electronic devices can be integrated in the future without using the equipment grounding conductor to carry current from the electronic devices back, which is why the "traditional" method of switch legs to remote switches with both line and load terminating in the same switch location is no longer allowed per NEC.
It is permissible to use the grounding conductor as the "grounded conductor / neutral" solely for electronic switches in retrofit situations where electronic switches are integrated into old systems, but it is a practice that is strongly frowned upon, given the prevalence of electronic / smart devices used, which can put more load on the ground, thus creating a potential hazard if someone were to touch two grounded surfaces that did not have equal potential.
The best way to wire the switches is in the method as I described above.
Just my two cents.