Wifi antenna are a standardized frequency and connector. You can buy replacements: https://www.amazon.com/dp/B08S33DC8D/
Is it a threaded connection? It might be an external wifi antenna, but I've seen most with two connection ports. Here's an example of what I'm thinking of https://www.amazon.com/dp/B08S33DC8D/ref=cm_sw_r_cp_apa_glt_fabc_W0E7NB93X4FRBT92Q8HV Or https://www.amazon.com/dp/B08LPPML46/ref=cm_sw_r_cp_apa_glt_fabc_AGY8MM7QM7EK168KRQH8?_encoding=UTF8&psc=1
A pair of these will do https://www.amazon.com/Antenna-Connector-Magnetic-Wireless-Hotspot/dp/B08S33DC8D
​
it's just wires. anything that screws in will work.