If there was no other significant illness before surgery / no complication at or after surgery - nothing will be in the way of your gaining normalcy as before. Apparently, the only medicine you are taking is ibuprofen
and it has no influence on sleep.
is the basis of post-operative recovery / including mental rehabilitation. Once you are back to your usual routine, everything is likely settle down. If you do not settle down in another week, see your doctor - more to make sure there are no new problems.