If all you need is to manually get the location when you lose it, and don't mind using SMS, Nulide/findmydevice is probably your best bet.
I wrote a similar Tasker profile that is very simple.
If you want continuous monitoring, https://gpslogger.app/ has a lot of options. From auto uploads to cloud storage like Dropbox or Google Drive... to SFTP, or custom webhook URLs so you can use your own server like Home Assistant.
Again, I just wrote something in Tasker that encrypts GPS data and sends to my private server.