wp-cli regenerate media is not working for custom sizes

I finally figured this out. It ended up being something really stupid. I have short tags enabled on my server so I can use <? instead of <?php in theme files. I was also using a short tag to open my functions.php file. Apparently, when PHP scripts run from the command line, they require the full <?php open tag, otherwise they just echo to the console. I made this change in my functions.php file and it works now.

By the way, if this is useful to anyone else, I wrote a Node.js script for processing massive WordPress media libraries that leverages as many cores as you have (in my case, 32 cores). https://gist.github.com/daveyjones/fe87d99be3d9f0ca4b7786ee5b66c15f