It's impractical that a dog can dictate your life, sadly that is the case with many people in the modern age. On the positive side, you could focus on caring for your children and making them happy and loved :)
I do doggy daycare one day a week to socialise my dog and get some chill time, and I also have a dog walker come once a week for the same reason. Maybe try one of those options to allow you to get out of the house and go to a baby class?
I get incredibly lonely at night, it hits me in a wave. I call my mum most nights just for a 10 min chat. I would work on leaving dog if possible as then you have a bit more freedom for a baby class? Or a dog walker is sometimes cheaper