How to respec in Lies of P

How do you respec in Lies of P? This Soulslike, as you'd expect from the genre, is hard as nails. Early on in the game, you may be unsure of the build you want to go for as you learn the mechanics and how things work, which means being able to respec your stats is a very welcome addition. However, it doesn't turn up for quite a while.
There are plenty of Lies of P bosses you may get stuck against, including the monstrosity that is Fallen Archbishop Andreus, but you're out of luck if you want to change your build until much further into the game. You'll need to go away and farm Lies of P Star Fragments and Ergo if you want to level up to beat the boss, rather than changing your existing build. There are some minor spoilers in this guide for one of the Lies of P bosses and a mechanic you unlock later down the line, so proceed with caution.
RELATED LINKS:
Lies of P dev adds Denuvo four days before launch
Lies of P teams up with 2023's best soulslike for launch collab
Best Lies of P legion arms