How does the tax refund work for SIPP Contributions?

From what I've understood you get 20% back instantly and then claim the rest from HMRC through self assessment. Is remaining bit of tax is refunded to you directly or does it go into the pension fund as well?