Samsung filed for this patent back in late February 2017 and it was granted only recently.
https://ift.tt/eA8V8J from Latest News Tech on Firstpost http://bit.ly/2Bo7Xsm
Samsung patents an S Pen design in the US with an optical zoom lens built into it
February 07, 2019