Can a substitute go back in?
A substitute may enter only once per set, and can be replaced only by the starting player they replaced. So: Starter → Sub → Starter is the most that can happen at one line-up spot in a set (except for exceptional substitutions after injuries).
Example: number 7 starts, number 12 replaces 7, then 7 comes back. For the rest of that set, neither 12 nor 7 can be substituted again at that spot.
Everything resets for the next set, so coaches plan carefully: a substitution used early in a set can’t be undone later when a different match-up is needed.