The release S/4HANA 2023 will be the last one with CP. This means the coding based on all the help views has to be adjusted after this release. My recommendation is to use this as target release for the next years! But also keep an eye on the other components (more in this blog).
The announcement about the extension of maintenance for Business Suite solutions has no influence on the end of compatibility pack use rights - they will be terminated after 2025. In the exceptional cases of CS, LE-TRA and PP-PI, the usage right to their respective compatibility pack items (cf. matrix) terminates at the end of 2030.
Details:
Compatibility Scope: What Happens after 2025/2030
https://blogs.sap.com/2022/08/09/compatibility-scope-what-happens-after-2025-2030/
SAP Extends Its Innovation Commitment for SAP S/4HANA, Provides Clarity and Choice on SAP Business Suite 7
https://news.sap.com/2020/02/sap-s4hana-maintenance-2040-clarity-choice-sap-business-suite-7/
The Future of Compatibility Packs in SAP S/4HANA
https://blogs.sap.com/2020/04/15/the-future-of-compatibility-packs-in-sap-s-4hana/
2269324 - Compatibility Scope Matrix for SAP S/4HANA
https://me.sap.com/notes/2269324
Video: https://www.youtube.com/watch?v=muPrV5J7ffM