https://www.et3lom.com/2023/10/parsing-if-you-want-to-replace-a-pair-with-a-pair.html