Tab or Session Manager for Safari 12?
I have had the same question and found no answer. So I myself developed a Safari extension named Tab Space which could handle this task for me. Try it if you want.