In the event of payment to any person under the coverage required by this subchapter and subject to the terms and conditions of the coverage, the insurer making the payment shall, to the extent thereof, be entitled to the proceeds of any settlement or judgment resulting from the exercise of any rights of recovery of the person against any person or organization legally responsible for the bodily injury for which the payment is made, including the proceeds recoverable from the assets of the insolvent insurer.