Long range high bandwidth communication with ESP32

Hi
I know its not exactly an Arduino but...
Is it possible to achieve a data transfer of 500 Kps at a distance of 2 km with an ESP MCU via Wifi?
And maybe a total range of 5 km+?
All with the right antennas of course
Hope you can answer my question

Is it possible ?

Almost certainly.

Is it legal is probably the real question.

The possible bad affect on other users of the band is another question.

That is also one of my concerns.
Do you think its possible to isolate the communication between master and slave MCU, or should i find another frequency band?

Your thread title references "communication" which requires two-way communication. What protocol are you going to implement to ensure the 500Kbps does in fact arrive and is without error?
Paul

Not with radio.