Short answer: Yes you can, but it could get complicated
Addressing the elements in reverse order:
The Soul of a Warrior Trapped in a Toad's Body
Can a character True Polymorph into itself as a means of reversing a True Polymorph someone permanently cast against them earlier? (ex: A warrior is permanently transformed into a toad. The party wizard shows up to permanently transform the warrior back into his regular self.)
First of all, his equipment's gone if you turn the toad back into a warrior.
p. 283 PHB, from the spell description.
The target’s gear melds into the new form. The creature can’t activate, use, wield, or otherwise benefit from any of its equipment.
Secondly: what is the CR or character level of the toad? When he got turned into a toad with the one hour concentration that made it permanent, that new form has new statistics, and has either a level or a CR bounded by how the spell operates.
the target's game statistics are replaced by the new form statistics including also its mental ability scores ...
If you turn a creature into another kind of creature, the new form can be any kind you choose whose challenge rating is equal to or less than the target’s (or its level, if the target doesn’t have a challenge rating).
If your warrior was ninth level, did he become a ninth level toad, a CR X toad, or what? As a point of reference: a Giant toad is CR 1, a Giant Frog is CR 1/4, and a regular frog (close enough to a toad) is CR 0.
Once the level or CR of this toad is established (work with your DM) you can transform that "once a warrior, now a toad" into a warrior (himself?) with a CR equal to or less than the CR of its current form per the spell description.
There is a potential for bad news: what is the equivalent level of a CR=0 warrior? A congressman?
The target’s game statistics, including mental ability scores, are replaced by the statistics of the new form. It retains its alignment and personality.
That last sentence opens the door to "kiss the frog and restore the prince inside." If who you are is made up of your alignment and personality and your soul (you aren't dead, you are alive, it is YOU in there, and souls* are part of D&D 5e), then "You the toad" could be a level-X warrior trapped in a toad's body.
Your DM could rule yes or no on that.
- If DM rules no, it might take a wish spell to restore the warrior to
his true self.
- But DM could rule yes based on the soul of the warrior remaining intact due to still being alive, albeit in a new form.
*Note on the soul, from 9th level Astral Projection spell:
If the cord is cut—something that can happen only when an effect specifically states that it does — your soul and body are separated, killing you instantly.
From this we deduce that while still alive, your soul -- who you are -- remains with you regardless of what form you are in. There's hope. "Who's inside that new body?" is also addressed here in the section with the title "The Vibe."
Now for the Generic question:
Who's Really In There, Inside that Body?
Can a character True Polymorph into itself (possibly after transforming into some other form first)? Possibly to prevent aging, cure wounds, or alter their original body in some way?
Once the CR/Level issue noted above is resolved with the DM, yes, as long as whomever casts the spell can concentrate long enough to do it. Once again:
If you turn a creature into another kind of creature, the new form can be any kind you choose whose challenge rating is equal to or less than the target’s (or its level, if the target doesn’t have a challenge rating).
Work that out with your DM and proceed.
For what it's worth, Jeremy Crawford(lead rules dev for 5e) had this to say about who is in there:
A spell doesn't erase/suppress your memories unless the spell's text
says it does.
When the text of a spell, like polymorph, says you retain your personality after a transformation, that's a terse way of saying, "You're still you, despite the radical changes you undergo." #DnD
Supporting point on it being "you" in there no matter what form you take.
There is a hint that "it's you in there!" in the "Creature to Object" element of the spell (p. 284 PHB) where a creature becomes an inanimate object for a while (not a permanent transformation). "You" are in there but "...the creature has no memory of the time spent in this form ..."
This can be read as being due to inanimate objects having no mental abilities. (Remember, the new form's stats are now your stats). You were in there, body and soul, but the lack of mental traits rendered memory irrelevant ... more "in a coma" than "brain death." You come out of this "coma" alive and intact, with your stats, when the spell expires.
This interpretation, you not being dead when temporarily an object, is consistent with soul and body being bound together in a live character, however impaired in terms of stats.
If the change into an object is permanent ... that's another story, or another trope.
Work with your DM.
Best Answer
Rules support for a Rule of Cool attempt
You are in the territory of a GM ruling, and since called shots and attacks on specific body parts aren't covered in the rules, this will probably break down into a three step process (at least) if your innovative PC wants to make this work. It won't be easy, but why not let them try?
Ability Check: Nature or Arcana
The player needs to do the research to find out the weak points of a Tarrasque, and if it in fact has lungs. Let's say say that they pass that ability check, and they find out that Tarrasque does indeed have lungs1. (DM ruling; nothing says yes or no in the monster description). So let's roll with this, or you just stop here if the ruling is "no lungs."
Ability Check, Opposed Athletics
Now the PC wants to get into the throat, and then expand into Huge size (see below) without getting swallowed by the Tarrasque.
Assign this research project to your PC: most players enjoy a challenge. Research Topic: How to get Huge inside a Tarrasque's Throat?
Once inside the Tarrasque's head/throat, the difficulty is in getting to the "just right" spot in order to expand and try to collapse some lungs, or just choke the beast, since the Tarrasque has this particular ability:
Since the character isn't yet grappled by the bite, per the bite attack description (MM, Tarrasque) the issue of being swallowed is in doubt. As DM, this is a fine time to call for an opposed Athletics check (see rules on Contests) with the character's Athletics ability versus the Tarrasque's(Strength) check. The Tarrasque's +10 modifier ups the challenge here. There is a chance to succeed, or a chance to fail. Feel the tension building! If the PC fails there is a chance for bite, swallow, and more as consequences of leaping into the Tarrasque's maw.
Consider whether or not Advantage or Disadvantage applies here. The DM can always rule that circumstantial advantage, or disadvantage, applies. (Basic Rules, p. 4)
Granted, you as DM could assign a high DC (25-30, maybe higher) for this very difficult task without creating an opposed check. (DMG, DC's; PHB; DC's).
If the PC manages to pull this off, there is good reason that they are able to remain stuck in the Tarrasque since the thing trapped inside of it is larger than a Large creature; it won't be barfed up by doing damage to it internally per the "barf 'em up" feature of the Tarrasque:
OK, the PC has collapsed the lungs, or cut off the airway, now what? The PC is likely restrained, and may wish to remain so for a while. Why?
It will probably take a while for the Tarrasque to die.
The Tarrasque has a Constitution of 30; +10 ability modifier. It can hold its breath for 11 minutes, and then when it is out of breath it can choke to death in 10 rounds. (Another minute). You, the DM, need to decide whether or not the PC also has to deal with a similar problem while stuck there in the Tarrasque's throat?
Is oxygen starvation on the table for our brave adventurer? There are some magic items and spells, and some class abilities, that might mitigate this ... Necklace of Adaptation for example.
The DM can also adapt the suffocation rule a bit, as needed, to help with making this play out more smoothly.
If this whole thing succeeds, the PC can wear his, or her, "I Made the Tarrasque Gag!" t-shirt with pride.
This isn't a case of an "I Win" button; this is more like a mini-adventure within the larger "fight the Tarrasque" adventure, and it isn't a sure thing. That's a good thing: what reward if there's no risk?
1 As @MarkTO noted in this comment: Many creatures do not have a combined airway/esophagus. This is how they can drink endlessly without having to pause to breathe like humans. Therefore, climbing into its mouth and enlarging might make it gag but wouldn't cut off its airway. That makes this a part of the aforementioned research project. See this Zoology stack exchange question for details (warning, graphic imagery).