Last I investigated, they were pretty clear that Google acts as an agent, but you are buying from the developer.
EDIT: Just checked an invoice and it says "You've made a purchase from Udemy Inc on Google Play". So clearly they intend the transaction to be between developer and customer.
The playstore makes it rather clear I'm buying from Google. And shows the developer information of course. But it's always been Google who took my money.
If I make a purchase on ebay and transfer the funds using paypal who am I purchasing the item from? Presumably the seller. Ebay and paypal are merely intermediaries.
The DSA applies to all very large marketplaces. Amazon and Google Play aren't very different in that sense. It does apply to the JQOIJDFW brands on Amazon, but these requirements have been there in various forms across different EU countries for many years.
This was never really enforced so most software developers never really bothered complying with any of it, but now that Google is trying to avoid another huge DSA fine, they're making people and companies doing business in the EU comply.
EDIT: Just checked an invoice and it says "You've made a purchase from Udemy Inc on Google Play". So clearly they intend the transaction to be between developer and customer.