I feel the same way regarding being a generalist. I’ve been a software generalist with a focus on web dev for my entire career but as I progress in my career I see the benefit of specializing. I can definitely see the benefit of specializing as a self-employed/freelance software engineer.