One has to decide for one self whether the lack of patches from the manufacturer side can still be considered secure enough for ones individual use case.
In general a lot of devices are supported that are long considered EOL by the manufacturer, like my S7 for instance. The best support can be expected for phones that are/were sold by murena. See this thread: [LIST] Devices to get a /e/OS U or Android 14 build
But there’s never gurantees because technical reasons or lack of resources or else might cause end of support for specific models.