The concept of a warlock is one of the more interesting premises in Dungeons & Dragons. Sorcerers are just born with an innate ability to cast magic because of the virtue of their birth; that's boring right? The high-risk, high-reward power acquisition method of making a dangerous deal with a demonic entity is far more exciting than someone having natural talent.
In Baldur's Gate 3, warlocks can choose between three different subclasses (four after Patch 8 releases), each with a different flavour of infernal contract. The Fiend subclass is similar to Wyll Ravengard's deal with Zariel; the player sells their soul to a demon or devil in exchange for powerful abilities. The Archfey subclass involves a deal with a powerful fey creature, while the new Hexblade subclass being added in the upcoming Patch 8 will grant powers in exchange for an agreement with a creature from the mysterious Shadowfell.
The description of the final subclass, The Great Old One, reads as follows: "You pledged something unthinkable to an unspeakably ancient entity - which in return furnished you with powers of cerebral entropy and control." There are a plethora of potential ancient entities which are applicable here, but one keen-eyed...