Saving a list of urls within a template sensor as a string

That’s unlikely. The developer documentation specifically says it is always converted to a string:

You can store anything you want in the state, as long as it’s a string (will be converted if it’s not).

Attempts to store more than 255 characters in state will result in an error message: