Sorry, sometimes I just get carried away, not to mention that as a non native speaker it's sometimes hard to make a point in fewer words.You make me read a lot of things
Liam's lack of attention isn't the only reason.
It is above all that she has only known him since college.
Even if she was spinning the perfect love, her curiosity would not have been satisfied because she did not have the good or bad experiences that we all need to have to pass to adulthood. Of course, she's a wife, she's a mother, but in her mind it's still young Sophia.
If she's been in need of attention for 15-20 years and hasn't had a serious conversation with Liam about it. It is because she does not have the mental age to do it. Otherwise a adult woman would have had this conversation with him, and if he hadn't changed his behavior, she would have cheated on him a long time ago.
She doesn't know how to deal with her emotions (she is embarrassed and horny at the same time), set limits, have an adult behaviour. ( And that's why we love her)
Anyway, you are absolutely right, and I think we even already discussed about this.
The real root cause is what you said, the fact that she got pregnant and they got married at such young age prevented them (or at least Sophia) to naturally mature and grow up through different experience.
She had to grow up faster and focus on be a mother and a wife, missing out on many other experiences other people normally go through at that age and contribute to shape the personality and their behaviour.
The lack of attention is just the trigger that exposes this side of her.