If you need, say, a 5V regulator, you grab a 7805 ... We remember old 7805 “drop in” switching supplies that were much fatter and they weren’t inexpensive. Boards are cheap these days ...