In order to check whether the UKR status is valid, it is necessary to go to the portal https://obywatel.gov.pl/:
Press Spradze swoje dane;
Authorize using a trusted signature (Profil zaufany);
Sign the document and get access to it.
If the status (status cudzoziemca) stands opposite the column:
dash or UKR — the status is not lost;
another mark — UKR status lost.
If there is any doubt as to whether the UKR status was restored after traveling home and returning to Poland, you can check it on the website of the Ministry of Digital Transformation (https://thedigital.gov.ua/).