Yes, they are actually saying that a "foreigner" who has worked here for decades, paid National Insurance, & is entitled BECAUSE OF THAT to a state pension, would be deported for the crime of claiming it.
Via @sundersays.bsky.social the Conservatives' draft legislation - absolutely clear that it applies to (and is intended to apply to) legal permanent residents claiming state pension (on the basis of their contributions) or child benefit for British kids.
publications.parliament.uk/pa/bills/cbi...