For the super-yacht named Black Pearl? With three rotational masts and at just over 350' in length it will run you 200 Million US dollars to duplicate. But it has a pool and a hot tub! Oh, you mean the other Black Pearl. My bad.
Aye, there be pirates in these waters, matey. Ye be warned.
So what would that Pearl cost? 10-15 million US for a legit reproduction. The Black Pearl is actually quite similar to Queen Ann's Revenge (QAR), both in size and design, so that's actually a really good comparison.
The fastest pirate ship in the Caribbean (save the Flying Dutchman, of course) started as the Wicked Wench, a merchant vessel. Through a complicated series of fortunate (or unfortunate, depending on your perspective) events, Jack Sparrow rose to the helm at which point she became the Pearl. She was about 110' and 178 tons (according to one fandom site) with three masts and had 18/14 cannon split for a total of 32. By comparison the QAR also started life as a merchant ship - La Concorde - and through a series of fortunate (or, again, unfortunate) events Edward Thatch (or Teach), better known today as Blackbeard the pirate, became her captain, renaming her QAR. La Concorde was actually a slaving vessel and had a human cargo at the time she was overtaken; Jack Sparrow, according to the story, refused to engage in such practices (which is what led to the ship being burned and his deal with Davey Jones to resurrect the vessel). But the ships were of similar size - QAR is said to have had 40 cannons (alas, we have only found 30 in her wreckage). The QAR, with similar mast design, came in at about 200 tons which was somewhat large for a pirate ship; remember, speed was their most important factor, so they largely preferred smaller ships with shallower drafts that could move quickly and hide in shallow harbors/back bays. But at 200 tons, she was a little over 100' long with a beam (widest point of the ship) of about 25'. There happens to be a 238 ton ship roughly 100' long with a roughly 25' beam that has actually been historically "reproduced" - Mayflower II (its close by description but there are no actual Mayflower blueprints today). It even sailed the same passage as the original not too long ago. And that reproduction has a replacement assessment of about 15M. It's 60+ years old and was in need of serious repair a few years ago so they analyzed the repair/replace costs and decided instead of replacement to repair at a price tag of 11.2M. You can go see it today in Massachusetts.
Another of Blackbeard's ships, Adventure, has had the conversation about replication and that price tag is a little under 4M, the ship being only 80 tons.
Much better than buying a ship is finding a ship. The wreck of the Whydah Gally, the slaver taken by Black Sam Bellamy (who sailed with Hornigold and Thatch before taking his own "commission") has revealed in excess of 400M worth of artifact and treasure since her discovery in 1984 in 15-30' of water off the coast of Cape Cod. She could carry a lot, of course, at 300 tons.
Fwiw the Gothenburg fights in an even higher weight class than any of these, being significantly larger than the Pearl, QAR, or even WG. She is nearly 200' with a 36' beam and comes in at a whopping 788 tons. Of course, on the other end of the spectrum, you can probably purchase a piragua - a term for a small vessel somewhat like a sailing canoe - for tens of thousands, crew not included. These were how many of the Golden pirates got their start, taking larger and larger vessels along the way. For a size comparison the Titanic, a pretty small ship by modern standards, was 882' long and came in at about 50,000 tons. Modern cruise ships are over 1000' and 100,000 tons. An Iowa Class battleship was about the same as Titanic and a Nimitz Class Carrier is about the size of a cruise ship, roughly speaking by length and tonnage alone.
None of these pirate ships had pools or hot tubs, though... just saying that's something to think about before you shell out 10-15M for a legit pirate ship.
It would most likely be quite expensive - the main problem is that a lot of the materials and expertise needed once were commonplace and close to mass-produced but today is a rare (and often expensive) artisan item or skill.
As an example, the Swedish East Indiaman replica Götheborg cost about 250 million SEK to build - roughly $30 million. Now this ship is a bit larger than the 17th century galleons the Black Pearl and Queen Anne's Revenge are in the movies, and 100 years younger in design, but much of the material and methods remain the same.
Much of this cost was due to using traditional methods and materials in the construction. Hemp ropes were hand made, woollen sails were hand sewn, oak lumber was hand sawed and so on. The project took a lot of time, which increased costs, both due to the need to research many of the methods used, the slow artisan production of things like tar, hemp, lumber and wool sails and problems with funding. I'd wager that you'd be able to cut the cost significantly if you were prepared to use modern materials and mass-produced items, as well as industrial sawing, weaving, sewing etc.