You have to add the amount to line 11500 and take a deduction of the RRSP you contributed. As long as you meet the timing of rollover requirements.
(i.e. if withdrew during 2023, you must roll the amount during 2023 or up to 60days after Dec 31, 2023). Keep all records for possible audit by CRA. CRA may request certain documents to prove the money was from MPF.