I can’t imagine it’s particularly food safe to leave your starchy pasta water out for a few days and then reuse it.
I haven’t tested a few days of non-use. It’s usually if I happen to make pasta two days in a row, and (more rare) three days in a row (where it still boils daily).