It was a requirement for my Software Engineering degree (my university was in the US). When discussing with my coworkers in the past, I don't think many of them were required to take any ethics courses, unfortunately.
Ethics in software is something we should all probably talk about a little more often.
My alma mater treated CS more like "Applied Math", to the degree that I don't think that anyone in the department viewed Software Engineering as a major source of employment after the (Master's) degree.
Viewed from the lens of "CS is a researcher/PhD candidate mill", a lack of focus on ethics makes some sense to the cynic in me.