Rent a $5/mo Linux VPS and be happy. I think more people should do this because what you learn (and you'll learn a lot) is the foundation of everything else. Do this even if you are a programmer used to deploying to sophisitcated CI/CD stacks and k8s. The tight resource constraints (e.g. 1G RAM) are good for you - they make you think, and take care what you run and when you run it. Learn to setup ssh on both ends; le…
Do you have a link to this 5 dollar service you mention? The ones I knew have risen prices considerably.
The impression I get is that most $5 VPSes are basically the same, although I've really only used Linode. They give you some useful free stuff like an external firewall/router and monitoring (with only 24 hours of history, but that's plenty). Their docs and scripts are really good too if, like me, you're only a dilettante sysadmin.