Yes, re-entry permits are available at local immigration offices and at Suvarnabhumi (BKK) Airport. However, obtaining a re-entry permit does not guarantee entry back into Thailand; a Certificate of Entry must also be acquired to demonstrate the urgency of your return, and you will be required to undergo quarantine upon arrival.
re-entry permits are being sold at your local immigration office, and I know they are still being sold at Suvarnabhumi (BKK) international Airport.
Having a re-entry permit DOES NOT give you the right to return to Thailand, and you will need to get a Certificate of Entry by proving to the Thai government your return is "urgent", and go through quarantine when you return.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.