gh pr merge --squash merges on GitHub. Locally, origin/main still points at the pre-merge commit. Branch from it and your new branch silently lacks the change you just merged. Files you edited a minute ago look reverted.
git fetch origin
git switch -c next-thing origin/main