What part of speech is the word formal in
It is an adjective :)
Adjective, because it describes or modifies a noun.