I removed the motors from my kids' old ride-on vehicle, and wanted to use them for other purposes, so created this gear. I found others' designs, but wasn't happy with them for various reasons.
I don't know if those motors are very standardized, so I can't guarantee this will fit your application, but on mine they are snug – moreso than the original tires were. I recommend initially printing/cutting this quick and thin to confirm the fit. As shown in the photos, my original purpose was attaching to an old filament spool.
As proof that it's original and for my archiving purposes, I've attached the html source code that generated the SVG that I then imported into Tinkercad to create the STL. If you find that this design almost fits your motors and you want to try tweaking the shape, you can save the motor.txt file as html and open it in your browser, and modify as necessary using a text editor – but regarding how it works, I can't provide additional support beyond what's written here.
When you open the HTML file it shows the gear and below it, the SVG source.
It uses SVG Bézier curves to define each tooth of the gear, using parameters that were convenient for me to determine the locations of the curve control points. If you need to change the shape, start at the bottom where there's a block with if(false) – if you change that to true it will show the control points. Then try changing the values passed into the gearMaker function to see how they change the control vectors. Note that the comments in the code may be wrong. Definitely look at SVG documentation on curves.
The author marked this model as their own original creation.