A registered right of first refusal works against you as buyer.
If the right of first refusal is registered in the land register, it works against every acquirer and thus also against you. The beneficiary can redeem the property on the conditions that you agreed with the seller. Before the purchase, clarify whether the sale case was properly offered to the beneficiary and whether the redemption period is observed. Otherwise you risk losing the property again.
Have the registered right of first refusal checked before the purchase.