Such was not my intention. Here 'such' is?

Such was not my intention. Here 'such' is?

Explanation

In the sentence, "such" stands in for a previously mentioned or implied idea — making it a pronoun.

It refers to a kind or type of thing (e.g., behavior, statement) without repeating the noun.