Ibuprofen is possibly worse than that, it seems that it may interfere with sex hormones. [1]
This 2017 study I found in 30s of searching is seemingly underpowered at n=30 or so, but the (preliminary) implication is awful enough that I won't give my boys ibuprofen at all. Out of abundance of caution.
They can have naproxen or acetaminophen instead -- we keep those out of reach and teach our children not to touch them without adults.
Perhaps there is some more recent research?