Just don't be stupid about it. First always take care of all your shit at home. Second don't make sudden drastic grooming changes. Next don't make sudden drastic schedule changes. Slowly line up your free time excuses for a few hours. Learn to turn off geo location. Clear search histories. Burner phone(put together a car emergency kit in a small storage tub for the trunk. Battery charger, water, first aid kit, snack, warming items etc) and include a pay as you go phone. That is your hobby phone.
Next is to realize not every hobby time will work out. Cancelations will occur, plans will have to change to accommodate your family. Prioritize things so the hobby is always the second choice.
Yes it's a rush of dopamine. But be an adult about it. Keep that separation at the forefront. Doing that can help prevent losing control. By taking control of all aspects and treating it as the relationship dangerous activity it is.
Set a budget, stick to it.
Good luck.