You cannot use I haven't known that here. The present perfect describes a present state which arises out of a prior eventuality, and you are implicitly saying that your present state is that you do know that—which is not a state that can arise out of your previous ignorance. (It can emerge from your previous ignorance, but it can only arise out of learning it.)
You may use I didn't know that, with or without until you mentioned it. This states that in the past you were in a state of ignorance, a state which ended at the point when your addressee mentioned 'it'. Until marks the end of a state, as explained here.
You are not obliged to include anything like until you mentioned it in order to make it clear that now you do know that—the discourse situation takes care of that—it serves only to make clear that it was your addressee's statement which dispelled your ignorance, not some other past event.
You may also use I hadn't known that, again with or without until you mentioned it. The past perfect does not necessarily describe a state arising out of a prior eventuality, because the past tense-domain does not have the contrast between simple past and present perfect which exists in the present domain—the past perfect serves for both. Here the past perfect acts as a “past-in-past”, analogous to the present-tense-domain simple past, so it describes a prior state of ignorance which ended at your past reference time, the time explicitly named in the until clause.
However, as you know, FumbleFingers' Perfect Truism instructs you that if you do not need a past perfect you should not use it. In this case there is no evident reason why a past perfect should be needed; consequently the best choice here is the simple past:
I didn't know that (until you mentioned it).
You certainly can. In fact, when sorry is used like that (to let the person you're speaking with know that you didn't hear properly what they said), it's really just a short version of I'm sorry. Here's a simple example:
— I and my wife are going to Paris next month. Will you come with us?
— I'm sorry. What did you say? I didn't hear you well. Could you repeat that?
Best Answer
The second is the correct one. You would use I haven't heard of an item of news that you might be expected to know about, not of something the other person just said.
"Do you know who won the tournament? I haven't heard the results yet."