Looks like it is PN: KD45-67-5Y0G and it is also used on the Mazda 3 and 6.
I see some used ones on eBay for less than $50
New around $121.
https://www.oemvehicleparts.com/oem-parts/mazda-body-control-module-kd45675y0g
https://www.parts-sale.jp/index.php?route=product/search&search=KD45-67-5Y0G
I see some used ones on eBay for less than $50
New around $121.
https://www.oemvehicleparts.com/oem-parts/mazda-body-control-module-kd45675y0g
https://www.parts-sale.jp/index.php?route=product/search&search=KD45-67-5Y0G