Money already spent and unrecoverable is a sunk cost, and it should be completely irrelevant to what you do next — the only rational question is whether the future costs of continuing are worth the future benefits. But humans are extraordinarily bad at this. Having invested money, time, or effort makes people persist with failing courses of action specifically because they've already invested, which is exactly backwards.
In money terms this shows up as holding a losing stock to 'get back to even' (the stock doesn't know what you paid), pouring repairs into a car that keeps failing, or staying in a bad investment because exiting means admitting the loss. The loss already happened; the only choice is whether to add to it. A useful reframe: if you didn't already own this position, would you buy it today at this price? If no, the only thing keeping you in it is the money you can't get back anyway.