Restore the individual commits history that was lost in a squashed merge

git merge origin/squashed-branch --strategy-option ours

When done, you should end up with identical files when you do this:

git diff main origin/main

But with the full commit history will be there on your local branch when you git log.

At this point you will have to force push to replace the branch without all the individual commit history.