Mine is 2015 Retina Pro and still has the optical out. It is the last in the line though and yet one more reason that my paths parted with Apple since.
[1] https://appleinsider.com/articles/16/11/02/new-macbook-pro-d...
[1] https://appleinsider.com/articles/16/11/02/new-macbook-pro-d...
Older MacBooks. Apple dropped optical out/in several years ago, none of their current systems (unless you count the 2013 Mac Pro as current) include it.