Yes, it's a part of speech that's formally in the standard language. Japanase is full of these 'case markers', that don't exist in English. Japanese doesn't have articles or noun inflection, so you need them to determine what function words are in a sentence, or if it's a question.
In English it's slang. Hence you won't find it in a textbook.