My dog has been a beacon of hope through these last years of being alone. Highly agree. They can be a ton of work depending on the breed but there are plenty of dogs at the pound who might end up saving you in the end and not the other way around.
Loneliness is a state of mind. And sometimes when I am with people I feel the most alone. So above all else just be kind to yourself. Eat well, watch things you enjoy, do things you always dreamt of doing as a kid. That is how I stay sane at least, haha.