you said you became PR in 2018, PR card is valid for 5 years, so your card should be ok to come back, you can go in and out as long as your card is valid, after spending 2 years in Canada, you submit for PR renewal, regardless of the validity of the card itself, as it is just a travel document...