In memory of this thread https://forum.manjaro.org/t/bash-find-most-recent-lts-version/52174 I wrote this Perl script to scrape the status from the last few kernels from kernel.org.
Name: kernel-versions.pl
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
my $kernels_xml = get('https://www.kernel.org/feeds/kdist.xml') or die 'Unable to get page';
# Version:</th><td><strong>6.8.7</strong> (stable)
my $rx = qr/Version: .*? strong> ([^&]+) .*? \(([^)]+)\) /x;
while ($kernels_xml =~ /$rx/g) {
print "$1 ($2)\n";
}