The usual answer for programmable voip is Twilio. I’ve been using vitelity since I’ve been there for a long time, and their support is quite good, but they’re less flexible than Twilio and cost a bit more. A DID (direct inward dial) number from them is $1.50/month instead of $1.
These numbers all terminate in data centers, and some particularly obnoxous websites check for that and won’t do 2FA verification through them. Worst case, you could get a real cellphone and leave it in a drawer and also have it as a useful burner. There are some very cheap ones with 1 year plans on qvc.com (search for tracfone). QVC seems cringy as hell but I’m a bit tempted anyway. There are also some on tracfone.com but QVC has more choices.
For high value accounts, use 2fa with hardware tokens if you can, and maybe use a dedicated computer (old laptop) with a bare bones software installation to minimize the likelihood of malware.