Unlock my S21 Ultra

Hello. I stopped using my S21 Ultra 2 years ago because the top half of the screen stopped working. Getting a new phone seemed more reasonable than fixing the screen. I found it today in my old drawer and realized I have not backed up the data. I saw online that smart things had an unlock button but it is no longer there. I forgot my pattern and as of now it locked me for 2 hours. I am pretty sure I can’t remember it since the last time I turned it on was almost 2 years ago. But I do not want to factory reset my phone as I want my data. What can I do?