I imagine the re-entry permit counter is still open at BKK. You will need to let the people at the immigration desk know you want to get a re-entry permit. If there is no one at the counter, they can get someone. The cost is 1K THB, or 1,200 THB if they fill out the paperwork.
The counter is open
****
.