People always misconstrue attachment theory as it being solely about the child's relationship with it's main caregiver when it's not, it's only a component of it. His own studies of attachment and of theory have been criticised as being weak, too narrow minded and only focusing on the mother as an attachment figures.
https://www.bps.org.uk/psychologist/demystifying-attachment
Another study found that issues like antisocial behaviour, also found evidence of anti-social behavior, affectionless psychopathy, and disorders of language, intellectual development and physical growth were not due to a lack of attachment to a mother figure but other factors such as lack of stimulation and social experiences.
https://www.simplypsychology.org/bowlby.html
But still we have armchair experts on here and politicians use attachment theory as a weapon against mothers to shame them into staying home and out of the work place in this belief that the absolute best thing for a child is to have their mother at home with them and women being told its OK if they can take a few years out of work and they can just skip back into work. Women can offer so much to the working world and have contributed to economy and society in so many ways yet a large part of society still thinks the best place for them is at home.
I work in social care and older adult care. About 90% of our work force is women and a large percentage is working mothers. It's the same for most caring professions too such as caring, nursing and teaching.
People on this thread say its fine for women to take a few years out their career yet offer NO ALTERNATIVE for who are going to fill these roles when these women are out of work. These professions are already short staffed and would become even more so if everyone took a few years out to stay at home. So perhaps these posters would be mindful to remember this the next time they need a nurse to care for them or their family member in hospital, or a midwife to deliver their baby, or a social worker or carer to help an elderly relative or teacher to teach your child.