In a medium saucepan, heat milks and ¼ cup (50 grams) sugar over medium heat, whisking frequently, until steaming. (Do not boil.)
In a medium bowl, whisk together egg yolks, cornstarch, salt, and remaining ¼ cup (50 grams) sugar. Slowly add warm milk mixture, whisking constantly. Pour mixture into saucepan; cook over medium heat, whisking constantly, until thickened and boiling, 4 to 5 minutes. Whisk in extracts.
Strain mixture through a fine-mesh sieve into a large bowl. Whisk in butter until melted and well combined. Cover with a piece of plastic wrap, pressing wrap directly onto surface of pastry cream to prevent a skin from forming. Refrigerate until an instant-read thermometer registers 65°F (18°C) to 70°F (21°C), 2½ to 3 hours.