Painful sex after baby

Gen

I gave birth to my baby almost 2 years ago. Since then every time my husband and I try to have sex it is very painful and uncomfortable. Before having baby everything was great no problems. Now that our baby is almost 2 we want to start trying for baby #2 but every time we have sex it is very uncomfortable/ painful and not enjoyable at least for me. Has anyone ever had this problem before? What have you done? I talked to my obgyn and said to use lube but that doesn't help. Kind of desperate to get this situation resolved.