I see 3 main possibilities. Set up the diamonds, a squeeze against West in the minors, or 3-3 clubs, with Qxx onside. The latter is not going to be common. Even if we ignore the question of East having longer hearts, 3-3 clubs are 35.5%, half of the time the queen will be in the West.
Setting up the diamonds is possible, if you maintain sufficient entries to dummy. All that takes is 3-3 diamonds, or 4-2. If they are 2-4, with East having the length, then you have potential problems, as you need to set them up while using trump entries to dummy. You would then be worried about West overruffing.
Anyway, you win the heart king with the ace. (Noting that East did not play the queen.) Then immediately, diamond to the ace, and a low one back. Assume East plays a low heart there. (Note on the defense, even if you could safely have discarded a black card on a red suit, it is often a good idea to pitch red on red. I have occasionally seen an opponent not watch what was happening carefully, and miss that you did not follow suit.) Regardless, ruff the diamond low, and take stock. This tell you a lot about the shape of the defenders hands. Diamonds were 5-1. I would initially presume that East has 6 hearts for the preempt, although 7 is possible. In that case, hearts are 4-6 or 3-7.
Setting up the diamonds is no longer possible. But since West is known to have the diamond honors, then a simple squeeze in the minors against West is now looking like a roughly 50% play. You need to draw trumps, and ruff the heart in dummy first though. This will give you a great deal of information about the hands.
Ruff the heart jack (I expect that West will cover your jack with the queen), then cash the trump ace, then 10 to the king and queen. On the second and third rounds of trumps, West will throw a low heart and a diamond.
You now know that West was originally 1=3=5=4, or 1=4=5=3 shape. East was respectively 3712 or 3613.
What do you know about the points? East has shown by the 2♡ bid 4-9 HCP. Not total points, which for the bots include distribution, but 4321 HCP. But you have seen the spade jack, and the heart king, so East does not need to hold the club queen for the 2♡ bid.
Can you make the contract if East has Qxx in clubs? It appears not, so you don't worry about that case. You essentially need East to have Qx in clubs, or xx, or xxx. If you can find a line that caters to all three cases, this is your best chance. If you cannot find a line that handles everything, then look for one that caters to the most probable subset of those hands. In that case, you will be playing for West to have the club queen.
At trick 8, you know that West has exactly 2 diamonds remaining (the K9), and no hearts, so 4 clubs. That gives East a doubleton club. If you were going to play anybody for the club queen, it would be West, with 4-2 odds on that bet. There are two cases remaining to cater for, the clubs sitting Qxxx opposite xx, or xxxx opposite Qx in the E-W hands.
At the end here, it helps to know who you are playing. If these are bot opponents, then there is a little trick you can rely on, a bug in the bot programming. You know that East has 2 cards remaining. Does East have Qx or xx? If you cash the ace, then East can see the KJ remaining in dummy. If East had the Qx, then it will play randomly from those two cards, because it assumes that you will be smart enough to drop the queen if it plays low. As such, the Q and the x are equal cards as far as a bot is concerned when you cash the ace. So if you cash the ace, 50% of the time, East will drop the queen if it has Qx. (This is a known behavior of the bots, though I do not know if they have found and fixed this quirk in the bot programming yet.)
Against human opponents, I'd probably just take the 2-1 odds, and play West for the queen. Against bot opps, I'd cash the club ace, hoping to get lucky in case East does have the queen of clubs. If a bot East does not play the queen under my club ace, I'd play West for that card.
If you cash ♣A at trick 8 or 9 and RHO drops the ♣Q, then the penultimate trump catches LHO in a trump-squeeze
- if LHO comes down to one ♦, then you cross to ♣J and ruff a ♦, leaving dummy high.
- if LHO keeps 2 ♦s, then you cash dummy's ♣s and ruff a ♦, to enjoy the last ♣.
If RHO plays low on ♣A, then you can still play this trump-squeeze (probably taking the ♣ finesse).
Had RHO turned up with 8 (instead of 7) ♥s, then you could claim after cashing ♣A