The antennas usually included on ESP32 boards are for 2.4GHz, which is the range the ESP32 hardware is tuned for anyway. But if you do want a different antenna, just get a board with a modular antenna, like some of the Xiao boards from Seeed Studio
Yes, that was in the 'random laptop' context, sorry, I could have made that clearer.
I think that applies too, laptops usually use the same connectors for the Wi-Fi antennas, so you shouldn't have an issue just using something off the shelf that matches the frequency you want