Prusa, and a few other vendors, sell V0-rated filament that self-extinguishes, meeting the UL requirement for such for junction boxes.
However, in most of the U.S., any junction box carrying mains voltage must be listed by a nationally-recognized testing laboratory like UL, and that listing...