Buying used Toyota Highlander Hybrid

Hello, I am thinking about purchasing a used 2018 Toyota Highlander Hybrid. My concern is about the hybrid battery. How long do they last? What are people “in the know” opinion about buying it used. I spoke with a mechanic at a dealers shop he said it is about $7500 to replace the battery.

Any information would be greatly appreciated.

Thank you

Chris R