GPS quick settings tile
So an answer to my other similar question helped me find a solution for this one as well.

It is possible to toggle the GPS with an app Automate.

I used the block, called "Location provider set state" from the "Location" category to enable/disable the GPS. And the block, called "Quick Settings tile show" from the "Interface" category to create and control the quick settings tile.

Here's a screenshot of the complete flow I'm using: