To transit through Bangkok to Phuket, you must book a “sealed flight”. These are particular approved flights and should be booked as a single international itinerary. If you book your flights separately (through a 3rd party provider), you must exit through border control at Bangkok airport. Once you pass through border control, you are required to test and quarantine for 1 night in Bangkok before traveling to Phuket the following day.