A hatred such as he had never known before was coursing through Harry like poison.
As I know, the phrase "such as" can mean "for example" or 'like' and is followed by a list or a noun, pronoun and etc. But in this sentence, it's followed by a clause. It looks to me that it's like saying: A hatred that he had never known before was coursing through Harry like poison. It seems to function as "that" in this case.
How should we understand it in this sentence?