This uses US Census data for state populations, currently from 2022: https://www2.census.gov/programs-surveys/popest/technical-documentation/file-layouts/2020-2022/sc-est2022-alldata6.pdf

population_by_state_by_age

Format

It is a tibble with columns for State_FIPS, State, Age, and Population