If your question is about 'too,' not the phrase 'too sure,' then yes, too can be used in a formal text. This is from Grammerly.com. How to Use Too. Too is also a useful little word, but it’s not a preposition like to, and it doesn’t have as many meanings. You can use it instead of “besides,” “in addition,” “also,” or “as well.” More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.