How upgrading from Spring Boot 3.2.5 to 3.3.1 broke our object mapper

After upgrading Spring Boot from version 3.2.5 to 3.3.1 we started to have a serialization issue with the Optional class. Check how to fix it in this post