with open('SeoTags.txt', 'r') as f:
g = f.read()
text = str(g.split(' '))
sorted_text = sorted(text, key=lambda x:int(x.split(':')[1]), reverse=True)
print('\n'.join(sorted_text))
Сам файл SeoTags.txt
GamesFree:66:genshin impact cheats:genshin impact cheat
GamesFree:69:synapse x cracked download:synapse x crack
GamesFree:59:roblox exploit:roblox free executor
GamesFree:50:free fortnite hacks:FREE FORTNITE HACK
GamesFree:68:best csgo skin changer:csgo skin changer
GamesFree:59:dota 2 scripts:free dota hack
GamesFree:75:valorant hack free:free valorant hack
GamesFree:73:apex legends hack free:APEX LEGENDS HACK
GamesFree:33:do it yourself:BEST FOR HACK
GamesFree:64:enlisted:best free enlisted hack
GamesFree:59:how to hack crab game:Hack Crab Game
GamesFree:74:pubg mobile:FREE HACK PUBG
GamesFree:75:unturned hacks:unturned hack