STM32G4x1 Changing polling rate of ADC
Yes there is many ways to capture at variable rates.
Quote from the datasheet page that describes ADC features:

Each ADC support multiple trigger inputs for synchronization with on-chip timers
and external signals