My personal ideal is a dedicated office space in a location very close to my home, like in the nearest downtown, where I would pay a certain amount per month in return for a set of days on which I could reserve personal office space.
The issue with working from home for me is that I feel my personal life and work life become messy and entangled if I do too much work at home. Similar to how good sleep hygiene involves doing as few activities other than sleeping on your bed as possible, I feel for my mental wellbeing it's better to physically separate my work life and home life as much as possible.